Skip to content

Commit

Permalink
Clippy + add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Nov 29, 2024
1 parent a2249f5 commit 1205af7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/krilla/src/object/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
//! - GIF
//! - WEBP
// TODO: CLean up and update docs

use crate::color::{ICCBasedColorSpace, ICCProfile, ICCProfileWrapper, DEVICE_CMYK, DEVICE_RGB};
use crate::object::color::DEVICE_GRAY;
use crate::resource::RegisterableResource;
Expand Down Expand Up @@ -435,7 +437,7 @@ fn decode_gif(data: &[u8]) -> Option<Repr> {
}

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

Some(ImageMetadata {
size: (size.width as u32, size.height as u32),
Expand Down

0 comments on commit 1205af7

Please sign in to comment.