fix : clippy
This commit is contained in:
parent
25c85fe076
commit
05e99203e8
2 changed files with 2 additions and 2 deletions
|
@ -421,7 +421,7 @@ pub mod account {
|
|||
ldap.extended(tmp).unwrap();
|
||||
|
||||
// user is already verified by being an active member on wolves
|
||||
if let Err(e) = update_group(config, "skynet-users", &vec![username.to_string()], false).await {
|
||||
if let Err(e) = update_group(config, "skynet-users", &[username.to_string()], false).await {
|
||||
println!("Couldnt add {} to skynet-users: {:?}", username, e)
|
||||
}
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ async fn activate_group(db: &Pool<Sqlite>, config: &Config, user: &str, mail: &s
|
|||
// check if user has this mail in teh wolves db
|
||||
if !get_wolves_mail(db, mail).await.is_empty() {
|
||||
// if so then activate
|
||||
if let Err(e) = update_group(config, "skynet-users", &vec![user.to_string()], false).await {
|
||||
if let Err(e) = update_group(config, "skynet-users", &[user.to_string()], false).await {
|
||||
println!("Couldnt add {} to skynet-users: {:?}", user, e)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue