diff --git a/crates/rpack/src/app.rs b/crates/rpack/src/app.rs index a90e842..125f11a 100644 --- a/crates/rpack/src/app.rs +++ b/crates/rpack/src/app.rs @@ -402,7 +402,7 @@ fn dynamic_image_from_file(file: &DroppedFile) -> Option { { let bytes = file.bytes.as_ref().clone()?; - if let Ok(r) = ImageImporter::import_from_memory(&bytes.unwrap()) { + if let Ok(r) = ImageImporter::import_from_memory(bytes) { Some(r.into()) } else { None