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