From 28196fd0d6515adf5e5a8bd394ba159840632ccc Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 26 Dec 2024 05:45:26 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- ee/tabby-db/src/ldap_credential.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ee/tabby-db/src/ldap_credential.rs b/ee/tabby-db/src/ldap_credential.rs index e6b7163d0740..dc84800d539b 100644 --- a/ee/tabby-db/src/ldap_credential.rs +++ b/ee/tabby-db/src/ldap_credential.rs @@ -1,6 +1,6 @@ -use anyhow::{anyhow, Result}; +use anyhow::Result; use chrono::{DateTime, Utc}; -use sqlx::{prelude::FromRow, query, query_scalar}; +use sqlx::query; use crate::DbConn; @@ -145,7 +145,7 @@ mod tests { assert_eq!(res.base_dn, "base_dn"); assert_eq!(res.user_filter, "user_filter"); assert_eq!(res.encryption, "encryption"); - assert_eq!(res.skip_tls_verify, true); + assert!(res.skip_tls_verify); assert_eq!(res.email_attribute, "email_attribute"); assert_eq!(res.name_attribute, "name_attribute"); let created_at = res.created_at; @@ -179,7 +179,7 @@ mod tests { assert_eq!(res.base_dn, "base_dn_2"); assert_eq!(res.user_filter, "user_filter_2"); assert_eq!(res.encryption, "encryption_2"); - assert_eq!(res.skip_tls_verify, false); + assert!(!res.skip_tls_verify); assert_eq!(res.email_attribute, "email_attribute_2"); assert_eq!(res.name_attribute, "name_attribute_2"); assert_eq!(res.created_at, created_at);