From 7c160e1704726643751b0556dda258eaa329371f Mon Sep 17 00:00:00 2001 From: Yakumo Hokori Date: Tue, 15 Jul 2025 17:54:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=AF=94=E8=BE=83SHA1=E5=80=BC=E6=97=B6?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 19f753b..9a74dc1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,7 @@ fn main() -> io::Result<()> { match cli.hash { Some(hash_value) => { - if hex_result == hash_value { + if hex_result.to_lowercase() == hash_value.to_lowercase() { println!("SHA1值匹配"); } else { println!("SHA1值不匹配");