fix compiler warnings

This commit is contained in:
SeanOMik 2023-07-14 21:50:25 -04:00
parent bb063eda80
commit 8e7952131b
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
2 changed files with 0 additions and 2 deletions

View File

@ -332,7 +332,6 @@ pub async fn auth_basic_get(
StatusCode::INTERNAL_SERVER_ERROR StatusCode::INTERNAL_SERVER_ERROR
})?; })?;
drop(database);
return Ok(( return Ok((
StatusCode::OK, StatusCode::OK,

View File

@ -100,7 +100,6 @@ impl AuthDriver for LdapAuthDriver {
}; };
database.create_user(email.clone(), display_name, LoginSource::LDAP).await?; database.create_user(email.clone(), display_name, LoginSource::LDAP).await?;
drop(database);
// Set the user registry type // Set the user registry type
let user_type = match self.is_user_admin(email.clone()).await? { let user_type = match self.is_user_admin(email.clone()).await? {