We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d68455 commit 84ef29cCopy full SHA for 84ef29c
src/crc.rs
@@ -8,7 +8,7 @@ use crc32fast::Hasher;
8
/// The CRC calculated by a [`CrcReader`].
9
///
10
/// [`CrcReader`]: struct.CrcReader.html
11
-#[derive(Debug)]
+#[derive(Debug, Default)]
12
pub struct Crc {
13
amt: u32,
14
hasher: Hasher,
@@ -23,12 +23,6 @@ pub struct CrcReader<R> {
23
crc: Crc,
24
}
25
26
-impl Default for Crc {
27
- fn default() -> Self {
28
- Self::new()
29
- }
30
-}
31
-
32
impl Crc {
33
/// Create a new CRC.
34
pub fn new() -> Crc {
0 commit comments