avoid compiler warnings

This commit is contained in:
Dietmar Maurer
2019-01-30 18:25:37 +01:00
parent 34f956bc25
commit 9f49fe1d5d
18 changed files with 60 additions and 119 deletions

View File

@ -17,8 +17,6 @@ pub fn assemble_csrf_prevention_token(
let epoch = std::time::SystemTime::now().duration_since(
std::time::SystemTime::UNIX_EPOCH).unwrap().as_secs();
let timestamp = format!("{:08X}", epoch);
let mut hasher = sha::Sha256::new();
let data = format!("{:08X}:{}:", epoch, username);
hasher.update(data.as_bytes());