Skip to content

Commit 84ef29c

Browse files
committed
feat: remove explicit clone impl for Crc
1 parent 2d68455 commit 84ef29c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/crc.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crc32fast::Hasher;
88
/// The CRC calculated by a [`CrcReader`].
99
///
1010
/// [`CrcReader`]: struct.CrcReader.html
11-
#[derive(Debug)]
11+
#[derive(Debug, Default)]
1212
pub struct Crc {
1313
amt: u32,
1414
hasher: Hasher,
@@ -23,12 +23,6 @@ pub struct CrcReader<R> {
2323
crc: Crc,
2424
}
2525

26-
impl Default for Crc {
27-
fn default() -> Self {
28-
Self::new()
29-
}
30-
}
31-
3226
impl Crc {
3327
/// Create a new CRC.
3428
pub fn new() -> Crc {

0 commit comments

Comments
 (0)