Fix cargo clippy warnings

This commit is contained in:
Philip Kristoffersen
2021-09-25 12:04:12 +02:00
parent d634a26035
commit 993251156d
4 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
fn save_shortcuts(shortcuts: &Vec<Shortcut>, path: &Path) {
let new_content = shortcuts_to_bytes(shortcuts);
let mut file = File::create(path).unwrap();
file.write(new_content.as_slice()).unwrap();
file.write_all(new_content.as_slice()).unwrap();
}
fn update_platform_shortcuts<P, T, E>(platform: &P, current_shortcuts: &mut Vec<ShortcutOwned>)