Skip to content

Commit a972bd1

Browse files
authored
Add missing method on ImageDecoder impl for Box (#2557)
1 parent 8c7f117 commit a972bd1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/io/decoder.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ pub trait ImageDecoder {
117117
fn read_image_boxed(self: Box<Self>, buf: &mut [u8]) -> ImageResult<()>;
118118
}
119119

120+
#[deny(clippy::missing_trait_methods)]
120121
impl<T: ?Sized + ImageDecoder> ImageDecoder for Box<T> {
121122
fn dimensions(&self) -> (u32, u32) {
122123
(**self).dimensions()
@@ -133,6 +134,9 @@ impl<T: ?Sized + ImageDecoder> ImageDecoder for Box<T> {
133134
fn exif_metadata(&mut self) -> ImageResult<Option<Vec<u8>>> {
134135
(**self).exif_metadata()
135136
}
137+
fn orientation(&mut self) -> ImageResult<Orientation> {
138+
(**self).orientation()
139+
}
136140
fn total_bytes(&self) -> u64 {
137141
(**self).total_bytes()
138142
}

0 commit comments

Comments
 (0)