fix deprecation warnings caused by old trait object syntax
This commit is contained in:
@@ -151,7 +151,7 @@ impl ListItem for Track {
|
||||
current.map(|t| t.id == self.id).unwrap_or(false)
|
||||
}
|
||||
|
||||
fn as_listitem(&self) -> Box<ListItem> {
|
||||
fn as_listitem(&self) -> Box<dyn ListItem> {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user