Updated dependencies, removed some unnecessary clones and fixed some lints

This commit is contained in:
Daniel García
2019-02-20 17:54:18 +01:00
parent bf6ae91a6d
commit 5ee04e31e5
7 changed files with 66 additions and 87 deletions

View File

@@ -407,7 +407,7 @@ fn _create_u2f_challenge(user_uuid: &str, type_: TwoFactorType, conn: &DbConn) -
challenge
}
fn save_u2f_registrations(user_uuid: &str, regs: &Vec<U2FRegistration>, conn: &DbConn) -> EmptyResult {
fn save_u2f_registrations(user_uuid: &str, regs: &[U2FRegistration], conn: &DbConn) -> EmptyResult {
TwoFactor::new(user_uuid.into(), TwoFactorType::U2f, serde_json::to_string(regs)?).save(&conn)
}