From 09cab5f1b3b424b80542f68f1216b6805dfef8a2 Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Sun, 5 Apr 2026 15:24:25 +0200 Subject: Upgrade sha2 crate --- tests/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/cli.rs b/tests/cli.rs index 2846a62..745d17d 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -292,8 +292,8 @@ fn long_help() -> TestResult { fn sha256>(path: P) -> Result, std::io::Error> { let mut file = File::open(path)?; - let mut hasher = Sha256::new(); + let mut hasher = digest_io::IoWrapper(Sha256::new()); std::io::copy(&mut file, &mut hasher)?; - let hash = hasher.finalize(); + let hash = hasher.0.finalize(); Ok(hash.as_slice().into()) } -- cgit v1.3