Skip to content

Commit 1205af7

Browse files
committed
Clippy + add TODO
1 parent a2249f5 commit 1205af7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/krilla/src/object/image.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//! - GIF
88
//! - WEBP
99
10+
// TODO: CLean up and update docs
11+
1012
use crate::color::{ICCBasedColorSpace, ICCProfile, ICCProfileWrapper, DEVICE_CMYK, DEVICE_RGB};
1113
use crate::object::color::DEVICE_GRAY;
1214
use crate::resource::RegisterableResource;
@@ -435,7 +437,7 @@ fn decode_gif(data: &[u8]) -> Option<Repr> {
435437
}
436438

437439
fn gif_metadata(data: &[u8]) -> Option<ImageMetadata> {
438-
let size = imagesize::blob_size(data.as_ref().as_ref()).ok()?;
440+
let size = imagesize::blob_size(data).ok()?;
439441

440442
Some(ImageMetadata {
441443
size: (size.width as u32, size.height as u32),

0 commit comments

Comments
 (0)