This commit is contained in:
Piotr Siuszko 2025-01-08 11:41:35 +01:00
parent 9729ac02e3
commit 7fe34786c7
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ fn dynamic_image_from_file(file: &DroppedFile) -> Option<DynamicImage> {
{ {
let bytes = file.bytes.as_ref().clone()?; 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()) Some(r.into())
} else { } else {
None None