Skip to content

Commit aba8290

Browse files
committed
Fix clippy(nightly) warnings
1 parent 1f83e87 commit aba8290

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/zlib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,22 +181,18 @@ impl Lz77WindowSize {
181181
/// - [Zlib Flush Modes](https://www.bolet.org/~pornin/deflate-flush.html)
182182
///
183183
/// [zlib]: https://www.zlib.net/
184-
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
184+
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
185185
pub enum FlushMode {
186186
/// `Z_NO_FLUSH` (default).
187187
///
188188
/// Note that when this parameter is specified,
189189
/// no `zlib` specific processing will not be executed but ordinal DEFLATE layer flushing will be performed.
190+
#[default]
190191
None = 0,
191192

192193
/// `Z_SYNC_FLUSH`.
193194
Sync = 2,
194195
}
195-
impl Default for FlushMode {
196-
fn default() -> Self {
197-
FlushMode::None
198-
}
199-
}
200196

201197
/// ZLIB header.
202198
#[derive(Debug, Clone, PartialEq, Eq, Hash)]

0 commit comments

Comments
 (0)