Skip to content

Commit f0244af

Browse files
committed
chore: remove unused Write impl from Crc32
1 parent f03f166 commit f0244af

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/hash/crc32.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::io::Write;
2-
31
use crc32fast::Hasher;
42
pub use digest::Digest;
53
use digest::{FixedOutput, HashMarker, Output, OutputSizeUser, Reset, Update};
@@ -36,16 +34,3 @@ impl Reset for Crc32 {
3634
self.0.reset();
3735
}
3836
}
39-
40-
impl Write for Crc32 {
41-
#[inline]
42-
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
43-
self.0.update(buf);
44-
Ok(buf.len())
45-
}
46-
47-
#[inline]
48-
fn flush(&mut self) -> std::io::Result<()> {
49-
Ok(())
50-
}
51-
}

0 commit comments

Comments
 (0)