Fix warnings

This commit is contained in:
Henrik Friedrichsen
2022-01-09 21:20:15 +01:00
parent 75a7aed4b1
commit 68b3b9b510
9 changed files with 22 additions and 44 deletions

View File

@@ -61,13 +61,6 @@ impl Playable {
}
}
pub fn added_at(&self) -> Option<DateTime<Utc>> {
match self {
Playable::Track(track) => track.added_at,
Playable::Episode(episode) => episode.added_at,
}
}
pub fn set_added_at(&mut self, added_at: Option<DateTime<Utc>>) {
match self {
Playable::Track(track) => track.added_at = added_at,