mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
chore(tauri): Resolve clippy warnings (#745)
This commit is contained in:
@@ -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())
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user