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 872ab26 commit c3ec0f8Copy full SHA for c3ec0f8
src/crc.rs
@@ -25,11 +25,8 @@ pub struct CrcReader<R> {
25
26
impl Crc {
27
/// Create a new CRC.
28
- pub fn new() -> Crc {
29
- Crc {
30
- amt: 0,
31
- hasher: Hasher::new(),
32
- }
+ pub fn new() -> Self {
+ Self::default()
33
}
34
35
/// Returns the current crc32 checksum.
src/gz/mod.rs
@@ -324,13 +324,7 @@ pub struct GzBuilder {
324
impl GzBuilder {
325
/// Create a new blank builder with no header by default.
326
pub fn new() -> GzBuilder {
327
- GzBuilder {
328
- extra: None,
329
- filename: None,
330
- comment: None,
331
- operating_system: None,
332
- mtime: 0,
333
334
335
336
/// Configure the `mtime` field in the gzip header.
0 commit comments