From 8e7952131b52ff67e35fd9994918fa42b8534c73 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Fri, 14 Jul 2023 21:50:25 -0400 Subject: [PATCH] fix compiler warnings --- src/api/auth.rs | 1 - src/auth/ldap_driver.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/api/auth.rs b/src/api/auth.rs index f85cbaf..6abd0b2 100644 --- a/src/api/auth.rs +++ b/src/api/auth.rs @@ -332,7 +332,6 @@ pub async fn auth_basic_get( StatusCode::INTERNAL_SERVER_ERROR })?; - drop(database); return Ok(( StatusCode::OK, diff --git a/src/auth/ldap_driver.rs b/src/auth/ldap_driver.rs index 486dd26..a87da0f 100644 --- a/src/auth/ldap_driver.rs +++ b/src/auth/ldap_driver.rs @@ -100,7 +100,6 @@ impl AuthDriver for LdapAuthDriver { }; database.create_user(email.clone(), display_name, LoginSource::LDAP).await?; - drop(database); // Set the user registry type let user_type = match self.is_user_admin(email.clone()).await? {