chore: clippy

This commit is contained in:
Vukašin Vojinović 2025-10-05 14:17:34 +02:00 committed by Michael Murphy
parent 1190da87ce
commit 37cbe4e8c1
3 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ impl<'a> AsRef<ObjectPath<'a>> for PlaylistId {
impl PartialOrd for PlaylistId {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.0.as_str().partial_cmp(other.0.as_str())
Some(self.cmp(other))
}
}

View file

@ -37,7 +37,7 @@ impl<'a> AsRef<ObjectPath<'a>> for TrackId {
impl PartialOrd for TrackId {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.0.as_str().partial_cmp(other.0.as_str())
Some(self.cmp(other))
}
}

View file

@ -65,7 +65,7 @@ impl TrackList {
self.proxy
.tracks()
.await
.map(|x| x.into_iter().map(TrackId::from).collect())
.map(|x| x.into_iter().collect())
.map_err(Error::from)
}