add type coercion helper to ListItem objects
This commit is contained in:
@@ -107,6 +107,10 @@ impl ListItem for Playlist {
|
||||
}
|
||||
}
|
||||
|
||||
fn as_listitem(&self) -> Box<ListItem> {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
|
||||
fn display_left(&self) -> String {
|
||||
self.name.clone()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user