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
+1 -1
View File
@@ -16,7 +16,7 @@ impl From<LegendaryGame> for ShortcutOwned {
let exe = format!("\"{}\\{}\"", game.install_path, game.executable);
let launch = format!("legendary launch {}", game.app_name);
let mut start_dir = game.install_path.clone();
if !game.install_path.starts_with("\"") {
if !game.install_path.starts_with('"') {
start_dir = format!("\"{}\"", game.install_path);
}
let shortcut = Shortcut::new(