Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aaalloc committed Nov 18, 2023
1 parent 00b0d6b commit 3ac4156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src-tauri/src/api/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn play_from_id(
// player.playlists.get_mut("all").unwrap().remove(id);
for (_, playlist) in player.playlists.iter_mut() {
// TODO: fix works but other things around it doesnt ...
if playlist.len() > id && playlist.len() > 0 {
if playlist.len() > id && !playlist.is_empty() {
playlist.remove(id);
}
}
Expand Down
3 changes: 1 addition & 2 deletions src-tauri/src/music/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ impl Player for MusicPlayer {
self.sink.set_volume(previous_volume);
}
None => {
info!("No audio found at index {}", index);
return;
info!("No audio found at index {}", index)
}
}
}
Expand Down

0 comments on commit 3ac4156

Please sign in to comment.