Evan Almloff %!s(int64=2) %!d(string=hai) anos
pai
achega
2f8d6fb49f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/file_upload.rs

+ 1 - 1
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);
                             }
                         }