Fix cargo clippy suggestions

This commit is contained in:
Philip
2021-10-10 13:49:00 +02:00
parent 0bcbdba158
commit 1a14e24173
8 changed files with 35 additions and 48 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
#[cfg(target_os = "linux")]
mod symlinks;
mod sync;
mod synchronization;
pub use sync::run_sync;
pub use synchronization::run_sync;
@@ -92,7 +92,7 @@ fn update_platforms(settings: &Settings, new_user_shortcuts: &mut Vec<ShortcutOw
);
}
fn save_shortcuts(shortcuts: &Vec<ShortcutOwned>, path: &Path) {
fn save_shortcuts(shortcuts: &[ShortcutOwned], path: &Path) {
let mut shortcuts_refs = vec![];
for shortcut in shortcuts {
shortcuts_refs.push(shortcut.borrow());