diff --git a/src/app/components/details/album_header.rs b/src/app/components/details/album_header.rs index 194e9fff..63550261 100644 --- a/src/app/components/details/album_header.rs +++ b/src/app/components/details/album_header.rs @@ -1,8 +1,8 @@ use crate::app::components::display_add_css_provider; +use gettextrs::gettext; use gtk::prelude::*; use gtk::subclass::prelude::*; use gtk::{glib, CompositeTemplate}; -use gettextrs::gettext; mod imp { diff --git a/src/app/components/details/details.rs b/src/app/components/details/details.rs index 838f11d1..70c217ef 100644 --- a/src/app/components/details/details.rs +++ b/src/app/components/details/details.rs @@ -8,8 +8,8 @@ use super::release_details::ReleaseDetailsWindow; use super::DetailsModel; use crate::app::components::{ - Component, EventListener, HeaderBarComponent, HeaderBarWidget, Playlist, ScrollingHeaderWidget, - playlist::PlaylistModel + playlist::PlaylistModel, Component, EventListener, HeaderBarComponent, HeaderBarWidget, + Playlist, ScrollingHeaderWidget, }; use crate::app::dispatch::Worker; use crate::app::loader::ImageLoader; diff --git a/src/app/components/details/details_model.rs b/src/app/components/details/details_model.rs index 8da558c6..7f16dd4c 100644 --- a/src/app/components/details/details_model.rs +++ b/src/app/components/details/details_model.rs @@ -215,7 +215,9 @@ impl PlaylistModel for DetailsModel { if current_song_id.is_none() || self.playlist_song_ids().is_none() { return false; } - self.playlist_song_ids().unwrap().contains(¤t_song_id.unwrap()) + self.playlist_song_ids() + .unwrap() + .contains(¤t_song_id.unwrap()) } fn play_song_at(&self, pos: usize, id: &str) { diff --git a/src/app/components/playlist_details/playlist_details_model.rs b/src/app/components/playlist_details/playlist_details_model.rs index df32fb20..b9b5045e 100644 --- a/src/app/components/playlist_details/playlist_details_model.rs +++ b/src/app/components/playlist_details/playlist_details_model.rs @@ -149,7 +149,9 @@ impl PlaylistModel for PlaylistDetailsModel { if current_song_id.is_none() || self.playlist_song_ids().is_none() { return false; } - self.playlist_song_ids().unwrap().contains(¤t_song_id.unwrap()) + self.playlist_song_ids() + .unwrap() + .contains(¤t_song_id.unwrap()) } fn play_song_at(&self, pos: usize, id: &str) {