Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Oct 5, 2024
1 parent 3a0b7cc commit cb0c8b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,8 @@ pub trait ImageDecoder {
/// This is usually obtained from the Exif metadata, if present. Formats that don't support
/// indicating orientation in their image metadata will return `Ok(Orientation::NoTransforms)`.
fn orientation(&mut self) -> ImageResult<Orientation> {
Ok(self.exif_metadata()?
Ok(self
.exif_metadata()?
.and_then(|chunk| Orientation::from_exif_chunk(&chunk))
.unwrap_or(Orientation::NoTransforms))
}
Expand Down

0 comments on commit cb0c8b6

Please sign in to comment.