Skip to content

Commit

Permalink
Fix clippy(nightly) warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Feb 6, 2023
1 parent 1f83e87 commit aba8290
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/zlib.rs
Expand Up @@ -181,22 +181,18 @@ impl Lz77WindowSize {
/// - [Zlib Flush Modes](https://www.bolet.org/~pornin/deflate-flush.html)
///
/// [zlib]: https://www.zlib.net/
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub enum FlushMode {
/// `Z_NO_FLUSH` (default).
///
/// Note that when this parameter is specified,
/// no `zlib` specific processing will not be executed but ordinal DEFLATE layer flushing will be performed.
#[default]
None = 0,

/// `Z_SYNC_FLUSH`.
Sync = 2,
}
impl Default for FlushMode {
fn default() -> Self {
FlushMode::None
}
}

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

0 comments on commit aba8290

Please sign in to comment.