Skip to content

Commit

Permalink
beautify (apply clippy suggestions)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvollmer committed Sep 21, 2023
1 parent b8d28e0 commit 1c95a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codecs/hdr/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ impl<W: Write> ImageEncoder for HdrEncoder<W> {
self.encode_pixels(rgbe_pixels, width as usize, height as usize)
},

_ => return Err(ImageError::Encoding(EncodingError::new(
_ => Err(ImageError::Encoding(EncodingError::new(
ImageFormatHint::Exact(ImageFormat::Hdr),
format!("hdr format currently only supports the `Rgb32F` color type"),
"hdr format currently only supports the `Rgb32F` color type".to_string(),
)))
}
}
Expand Down

0 comments on commit 1c95a34

Please sign in to comment.