diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.rs b/src/core.rs index 7e4aadb..0f27a80 100644 --- a/src/core.rs +++ b/src/core.rs @@ -87,7 +87,7 @@ impl Record { ) -> Result<Record, RecordError> { let modified = std::fs::symlink_metadata(&path)?.modified()?; let mut file = std::fs::File::open(&path)?; - let mut hasher = Sha256::new(); + let mut hasher = digest_io::IoWrapper(Sha256::new()); loop { if terminate.load(std::sync::atomic::Ordering::SeqCst) { return Err(RecordError::Interrupt); @@ -97,7 +97,7 @@ impl Record { break; } } - let hash = hasher.finalize(); + let hash = hasher.0.finalize(); Ok(Record { path: path.as_ref().into(), modified: modified.into(), |