chore: clippy
This commit is contained in:
parent
1190da87ce
commit
37cbe4e8c1
3 changed files with 3 additions and 3 deletions
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue