mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
fix(lint) minor lint fix for unnecessary match use (#3118)
sorry clippy I'm a better lintyboi naow
This commit is contained in:
parent
9836b2bf12
commit
b96eceb205
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue