refactor: zap display_center stub implementations

This commit is contained in:
Henrik Friedrichsen
2020-10-18 17:04:18 +02:00
parent 013beb245b
commit e5be021699
6 changed files with 3 additions and 21 deletions

View File

@@ -15,7 +15,9 @@ use crate::track::Track;
pub trait ListItem: Sync + Send + 'static {
fn is_playing(&self, queue: Arc<Queue>) -> bool;
fn display_left(&self) -> String;
fn display_center(&self, library: Arc<Library>) -> String;
fn display_center(&self, _library: Arc<Library>) -> String {
"".to_string()
}
fn display_right(&self, library: Arc<Library>) -> String;
fn play(&mut self, queue: Arc<Queue>);
fn queue(&mut self, queue: Arc<Queue>);