Pārlūkot izejas kodu

chore(tauri): Resolve clippy warnings (#745)

Rajiv Shah 5 gadi atpakaļ
vecāks
revīzija
b8454d4c60
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      tauri/src/endpoints/file_system.rs

+ 2 - 2
tauri/src/endpoints/file_system.rs

@@ -53,7 +53,7 @@ pub fn copy_file<T: 'static>(
           resolve_path(source, Some(dir.clone()))?,
           resolve_path(destination, Some(dir))?,
         ),
-        None => (source.into(), destination.into()),
+        None => (source, destination),
       };
       fs::copy(src, dest).map_err(|e| e.into())
     },
@@ -162,7 +162,7 @@ pub fn rename_file<T: 'static>(
           resolve_path(old_path, Some(dir.clone()))?,
           resolve_path(new_path, Some(dir))?,
         ),
-        None => (old_path.into(), new_path.into()),
+        None => (old_path, new_path),
       };
       fs::rename(old, new).map_err(|e| e.into())
     },