Skip to content

Commit

Permalink
Fix cargo clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley King committed Oct 24, 2023
1 parent e794c0d commit d5dda3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl ImageFormat {
}

/// Return all ImageFormats
fn all() -> impl Iterator<Item = ImageFormat> {
pub fn all() -> impl Iterator<Item = ImageFormat> {
[
ImageFormat::Gif,
ImageFormat::Ico,
Expand Down Expand Up @@ -1992,13 +1992,13 @@ mod tests {
#[test]
fn reading_enabled() {
assert_eq!(cfg!(feature = "jpeg"), ImageFormat::Jpeg.reading_enabled());
assert_eq!(false, ImageFormat::Dds.reading_enabled());
assert!(!ImageFormat::Dds.reading_enabled());
}

#[test]
fn writing_enabled() {
assert_eq!(cfg!(feature = "jpeg"), ImageFormat::Jpeg.writing_enabled());
assert_eq!(false, ImageFormat::Hdr.writing_enabled());
assert_eq!(false, ImageFormat::Dds.writing_enabled());
assert!(!ImageFormat::Hdr.writing_enabled());
assert!(!ImageFormat::Dds.writing_enabled());
}
}

0 comments on commit d5dda3d

Please sign in to comment.