Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing clippy warnings #1787

Merged
merged 2 commits into from Sep 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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