From dfe87e029269ae0c4d44939b3c495cf64620dee1 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 20 Nov 2023 08:05:47 +0000 Subject: [PATCH] Fix clippy issue. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7ab9180..1cdd3e6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -178,8 +178,8 @@ async fn index(req: HttpRequest) -> Result> { 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 {