File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,10 @@ impl<R: Read> GifDecoder<R> {
68
68
}
69
69
70
70
/// Wrapper struct around a `Cursor<Vec<u8>>`
71
+ #[ allow( dead_code) ]
72
+ #[ deprecated]
71
73
pub struct GifReader < R > ( Cursor < Vec < u8 > > , PhantomData < R > ) ;
74
+ #[ allow( deprecated) ]
72
75
impl < R > Read for GifReader < R > {
73
76
fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
74
77
self . 0 . read ( buf)
Original file line number Diff line number Diff line change @@ -167,7 +167,10 @@ impl ImageError {
167
167
}
168
168
169
169
/// Wrapper struct around a `Cursor<Vec<u8>>`
170
+ #[ allow( dead_code) ]
171
+ #[ deprecated]
170
172
pub struct TiffReader < R > ( Cursor < Vec < u8 > > , PhantomData < R > ) ;
173
+ #[ allow( deprecated) ]
171
174
impl < R > Read for TiffReader < R > {
172
175
fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
173
176
self . 0 . read ( buf)
Original file line number Diff line number Diff line change @@ -1395,6 +1395,7 @@ mod test {
1395
1395
// Test that structs wrapping a DynamicImage are able to auto-derive the Default trait
1396
1396
// ensures that DynamicImage implements Default (if it didn't, this would cause a compile error).
1397
1397
#[ derive( Default ) ]
1398
+ #[ allow( dead_code) ]
1398
1399
struct Foo {
1399
1400
_image : super :: DynamicImage ,
1400
1401
}
You can’t perform that action at this time.
0 commit comments