mirror of https://github.com/Leinnan/rpack.git
WASM
This commit is contained in:
parent
9729ac02e3
commit
7fe34786c7
|
|
@ -402,7 +402,7 @@ fn dynamic_image_from_file(file: &DroppedFile) -> Option<DynamicImage> {
|
|||
{
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue