diff --git a/examples/file_upload.rs b/examples/file_upload.rs index c43e6e6ef..700c5392e 100644 --- a/examples/file_upload.rs +++ b/examples/file_upload.rs @@ -19,7 +19,7 @@ fn App(cx: Scope) -> Element { if let Some(file_engine) = &evt.files { let files = file_engine.files(); for file_name in &files { - if let Some(file) = file_engine.read_file_to_string(&file_name).await{ + if let Some(file) = file_engine.read_file_to_string(file_name).await{ files_uploaded.write().push(file); } }