1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 01:39:28 +02:00

Fix warning and clippy lints

This commit is contained in:
Roderick van Domburg 2022-08-22 22:38:19 +02:00
parent 27e1274dcb
commit 9d80521e09
No known key found for this signature in database
GPG key ID: 87F5FDE8A56219F4
4 changed files with 6 additions and 6 deletions

View file

@ -87,10 +87,10 @@ impl SpotifyId {
/// Returns whether this `SpotifyId` is for a playable audio item, if known.
pub fn is_playable(&self) -> bool {
return matches!(
matches!(
self.item_type,
SpotifyItemType::Episode | SpotifyItemType::Track
);
)
}
/// Parses a base16 (hex) encoded [Spotify ID] into a `SpotifyId`.