mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +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.
|
// Any pre-start tasks here.
|
||||||
match &config.integration_test_config {
|
if let Some(itc) = &config.integration_test_config {
|
||||||
Some(itc) => {
|
|
||||||
let Ok(mut idms_prox_write) = idms.proxy_write(duration_from_epoch_now()).await else {
|
let Ok(mut idms_prox_write) = idms.proxy_write(duration_from_epoch_now()).await else {
|
||||||
error!("Unable to acquire write transaction");
|
error!("Unable to acquire write transaction");
|
||||||
return Err(());
|
return Err(());
|
||||||
|
@ -889,9 +888,7 @@ pub async fn create_server_core(
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// set the idm_admin account password
|
// set the idm_admin account password
|
||||||
match idms_prox_write
|
match idms_prox_write.recover_account(&itc.idm_admin_user, Some(&itc.idm_admin_password)) {
|
||||||
.recover_account(&itc.idm_admin_user, Some(&itc.idm_admin_password))
|
|
||||||
{
|
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!(
|
error!(
|
||||||
|
@ -944,8 +941,6 @@ pub async fn create_server_core(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => {}
|
|
||||||
}
|
|
||||||
|
|
||||||
let ldap = match LdapServer::new(&idms).await {
|
let ldap = match LdapServer::new(&idms).await {
|
||||||
Ok(l) => l,
|
Ok(l) => l,
|
||||||
|
|
Loading…
Reference in a new issue