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

This commit is contained in:
Rajiv Shah
2020-07-04 06:35:29 -04:00
committed by GitHub
parent d871af4083
commit b8454d4c60

View File

@@ -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())
},