fix(lint) minor lint fix for unnecessary match use (#3118)

sorry clippy I'm a better lintyboi naow
This commit is contained in:
James Hodgkinson 2024-10-18 09:27:49 +10:00 committed by GitHub
parent 9836b2bf12
commit b96eceb205
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -871,8 +871,7 @@ pub async fn create_server_core(
};
// Any pre-start tasks here.
match &config.integration_test_config {
Some(itc) => {
if let Some(itc) = &config.integration_test_config {
let Ok(mut idms_prox_write) = idms.proxy_write(duration_from_epoch_now()).await else {
error!("Unable to acquire write transaction");
return Err(());
@ -889,9 +888,7 @@ pub async fn create_server_core(
}
};
// set the idm_admin account password
match idms_prox_write
.recover_account(&itc.idm_admin_user, Some(&itc.idm_admin_password))
{
match idms_prox_write.recover_account(&itc.idm_admin_user, Some(&itc.idm_admin_password)) {
Ok(_) => {}
Err(e) => {
error!(
@ -944,8 +941,6 @@ pub async fn create_server_core(
}
}
}
None => {}
}
let ldap = match LdapServer::new(&idms).await {
Ok(l) => l,