cargo clippy

This commit is contained in:
Henrik Friedrichsen
2020-12-13 21:58:58 +01:00
parent 5fefe9eec3
commit 54e48a7dc6
3 changed files with 12 additions and 16 deletions

View File

@@ -127,7 +127,7 @@ impl ContextMenu {
true => "Unsave track",
false => "Save track",
},
ContextMenuAction::ToggleTrackSavedStatus(Box::new(t.clone())),
ContextMenuAction::ToggleTrackSavedStatus(Box::new(t)),
)
}

View File

@@ -74,7 +74,7 @@ impl ViewExt for PlaylistView {
if let Command::Sort(key, direction) = cmd {
self.list.sort(key, direction);
return Ok(CommandResult::Consumed(None))
return Ok(CommandResult::Consumed(None));
}
self.list.on_command(s, cmd)