diff options
| author | Stefan Kreutz <mail@skreutz.com> | 2026-04-05 15:24:25 +0200 |
|---|---|---|
| committer | Stefan Kreutz <mail@skreutz.com> | 2026-04-05 15:24:25 +0200 |
| commit | 09cab5f1b3b424b80542f68f1216b6805dfef8a2 (patch) | |
| tree | cf4603e1a7e4347932c970d6cf9d3922c3747a54 /tests/cli.rs | |
| parent | 0e15ffca1666f76bfd2c9973bddde33ae2de8832 (diff) | |
| download | brck-09cab5f1b3b424b80542f68f1216b6805dfef8a2.tar.gz | |
Upgrade sha2 crate
Diffstat (limited to 'tests/cli.rs')
| -rw-r--r-- | tests/cli.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<P: AsRef<Path>>(path: P) -> Result<Vec<u8>, 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()) } |