Skip to content

Commit

Permalink
Suppress Clippy false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel committed Sep 9, 2024
1 parent fad5aaa commit c3cec8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dynimage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ impl DynamicImage {
/// If this matters to you, please see the documentation on the variants of [Orientation]
/// to learn which orientations can and cannot be applied without copying.
pub fn apply_orientation(&mut self, orientation: Orientation) -> Result<(), ImageError> {
#![allow(clippy::unit_arg)] // false positive, requires multiple lines for no reason
let image = self;
match orientation {
Orientation::NoTransforms => Ok(()),
Expand Down

0 comments on commit c3cec8c

Please sign in to comment.