Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaedus committed Jun 7, 2023
1 parent 95110c1 commit 1a88a10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/details/details_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl PlaylistModel for DetailsModel {
if let Some(source) = self.state().playback.current_source() {
if let Some(uri) = source.spotify_uri() {
if let Some(album) = self.get_album_description() {
return uri == format!("spotify:album:{}", album.id);
uri == format!("spotify:album:{}", album.id)
} else {
false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl PlaylistModel for PlaylistDetailsModel {
if let Some(source) = self.state().playback.current_source() {
if let Some(uri) = source.spotify_uri() {
if let Some(playlist) = self.get_playlist_info() {
return uri == format!("spotify:playlist:{}", playlist.id);
uri == format!("spotify:playlist:{}", playlist.id)
} else {
false
}
Expand Down

0 comments on commit 1a88a10

Please sign in to comment.