fix deprecation warnings caused by old trait object syntax

This commit is contained in:
Henrik Friedrichsen
2019-09-01 01:32:50 +02:00
parent 9a38eaa535
commit 7aa70fcb6b
10 changed files with 27 additions and 25 deletions

View File

@@ -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())
}