Skip to content

Commit

Permalink
Merge pull request #1787 from gents83/master
Browse files Browse the repository at this point in the history
Fixing clippy warnings
  • Loading branch information
HeroicKatora committed Sep 10, 2022
2 parents e92caaa + 3c00565 commit b354376
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/codecs/png.rs
Expand Up @@ -477,8 +477,10 @@ pub enum CompressionType {
/// High compression level
Best,
/// Huffman coding compression
#[deprecated(note = "use one of the other compression levels instead, such as 'Fast'")]
Huffman,
/// Run-length encoding compression
#[deprecated(note = "use one of the other compression levels instead, such as 'Fast'")]
Rle,
}

Expand Down Expand Up @@ -579,10 +581,8 @@ impl<W: Write> PngEncoder<W> {
};
let comp = match self.compression {
CompressionType::Default => png::Compression::Default,
CompressionType::Fast => png::Compression::Fast,
CompressionType::Best => png::Compression::Best,
CompressionType::Huffman => png::Compression::Huffman,
CompressionType::Rle => png::Compression::Rle,
_ => png::Compression::Fast,
};
let (filter, adaptive_filter) = match self.filter {
FilterType::NoFilter => (
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Expand Up @@ -268,6 +268,7 @@ mod utils;
// Copyright (c) 2018 Guillaume Gomez
macro_rules! insert_as_doc {
{ $content:expr } => {
#[allow(unused_doc_comments)]
#[doc = $content] extern { }
}
}
Expand Down

0 comments on commit b354376

Please sign in to comment.