Skip to content

Commit

Permalink
Fix clippy issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Nov 20, 2023
1 parent 0a6feb8 commit dfe87e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
hasher.update(secret.as_bytes());

let hash = hasher.finalize().to_hex();
let hash = hash[..8].to_owned();
hash

hash[..8].to_owned()
}).await.unwrap();

if hash != qhash {
Expand Down

0 comments on commit dfe87e0

Please sign in to comment.