Skip to content

Commit

Permalink
Fixing 2 minor cargo clippy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
anforowicz committed Feb 9, 2025
1 parent 014877a commit b1c1253
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ fn filter_paeth_stbi(a: u8, b: u8, c: u8) -> u8 {
let hi = a.max(b);
let t0 = if hi as i16 <= thresh { lo } else { c };
let t1 = if thresh <= lo as i16 { hi } else { t0 };
return t1;
t1
}

#[cfg(any(test, all(feature = "unstable", target_arch = "x86_64")))]
Expand Down
4 changes: 2 additions & 2 deletions src/text_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
//! chunks. There are three kinds of text chunks.
//! - `tEXt`: This has a `keyword` and `text` field, and is ISO 8859-1 encoded.
//! - `zTXt`: This is semantically the same as `tEXt`, i.e. it has the same fields and
//! encoding, but the `text` field is compressed before being written into the PNG file.
//! encoding, but the `text` field is compressed before being written into the PNG file.
//! - `iTXt`: This chunk allows for its `text` field to be any valid UTF-8, and supports
//! compression of the text field as well.
//! compression of the text field as well.
//!
//! The `ISO 8859-1` encoding technically doesn't allow any control characters
//! to be used, but in practice these values are encountered anyway. This can
Expand Down

0 comments on commit b1c1253

Please sign in to comment.