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