We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f7085d + 68ba8f6 commit 20cdcbeCopy full SHA for 20cdcbe
src/gz/mod.rs
@@ -87,18 +87,23 @@ impl GzHeader {
87
}
88
89
90
-#[derive(Debug, Default)]
+#[derive(Debug)]
91
pub enum GzHeaderState {
92
Start(u8, [u8; 10]),
93
Xlen(Option<Box<Crc>>, u8, [u8; 2]),
94
Extra(Option<Box<Crc>>, u16),
95
Filename(Option<Box<Crc>>),
96
Comment(Option<Box<Crc>>),
97
Crc(Option<Box<Crc>>, u8, [u8; 2]),
98
- #[default]
99
Complete,
100
101
+impl Default for GzHeaderState {
102
+ fn default() -> Self {
103
+ Self::Complete
104
+ }
105
+}
106
+
107
#[derive(Debug, Default)]
108
pub struct GzHeaderParser {
109
state: GzHeaderState,
0 commit comments