Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaedus committed Jun 5, 2023
1 parent 63463ad commit 53b2c2b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/components/details/album_header.rs
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
4 changes: 2 additions & 2 deletions src/app/components/details/details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/app/components/details/details_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(&current_song_id.unwrap())
self.playlist_song_ids()
.unwrap()
.contains(&current_song_id.unwrap())
}

fn play_song_at(&self, pos: usize, id: &str) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(&current_song_id.unwrap())
self.playlist_song_ids()
.unwrap()
.contains(&current_song_id.unwrap())
}

fn play_song_at(&self, pos: usize, id: &str) {
Expand Down

0 comments on commit 53b2c2b

Please sign in to comment.