Solved some warnings

This commit is contained in:
Daniel García committed 2018-02-15 00:53:11 +01:00
1 parent b54684b677
commit 31bf2bc2b1
15 files changed
+31 -57

No files matched your search

+2 -3
View File
@@ -1,5 +1,4 @@
use chrono::{NaiveDate, NaiveDateTime, Utc};
use time::Duration;
use chrono::{NaiveDateTime, Utc};
use serde_json::Value as JsonValue;
use uuid::Uuid;
@@ -100,7 +99,7 @@ impl User {
let decoded_secret = match BASE32.decode(totp_secret.as_bytes()) {
Ok(s) => s,
Err(e) => return false
Err(_) => return false
};
let generated = totp_raw_now(&decoded_secret, 6, 0, 30, &HashType::SHA1);