Skip to content

Commit ee7b2ed

Browse files
Remove more unnecessary #[allow(deprecated)] (#2866)
1 parent 2fc52a6 commit ee7b2ed

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

src/codecs/ico/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//! * <https://en.wikipedia.org/wiki/ICO_%28file_format%29>
88
99
pub use self::decoder::IcoDecoder;
10-
#[allow(deprecated)]
1110
pub use self::encoder::{IcoEncoder, IcoFrame};
1211

1312
mod decoder;

tests/limits.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,11 @@ fn gif() {
8686
// no tests for allocation limits because the caller is responsible for allocating the buffer in this case
8787

8888
// Custom constructor on GifDecoder
89-
#[allow(deprecated)]
90-
{
91-
assert!(GifDecoder::new(Cursor::new(&image))
92-
.unwrap()
93-
.set_limits(width_height_limits())
94-
.is_err());
95-
// no tests for allocation limits because the caller is responsible for allocating the buffer in this case
96-
}
89+
assert!(GifDecoder::new(Cursor::new(&image))
90+
.unwrap()
91+
.set_limits(width_height_limits())
92+
.is_err());
93+
// no tests for allocation limits because the caller is responsible for allocating the buffer in this case
9794
}
9895

9996
#[test]

0 commit comments

Comments
 (0)