mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Fix warning and clippy lints
This commit is contained in:
parent
27e1274dcb
commit
9d80521e09
4 changed files with 6 additions and 6 deletions
|
@ -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`.
|
||||
|
|
|
@ -73,7 +73,7 @@ impl AudioFormat {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum NormalisationType {
|
||||
Album,
|
||||
Track,
|
||||
|
@ -98,7 +98,7 @@ impl Default for NormalisationType {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum NormalisationMethod {
|
||||
Basic,
|
||||
Dynamic,
|
||||
|
|
|
@ -144,7 +144,7 @@ impl SymphoniaDecoder {
|
|||
(time.seconds as f64 + time.frac) * 1000.
|
||||
}
|
||||
// Fallback in the unexpected case that the format has no base time set.
|
||||
None => (ts as f64 * PAGES_PER_MS),
|
||||
None => ts as f64 * PAGES_PER_MS,
|
||||
};
|
||||
seeked_to_ms as u32
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ pub struct Player {
|
|||
play_request_id_generator: SeqGenerator<u64>,
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Debug, Clone, Copy)]
|
||||
#[derive(PartialEq, Eq, Debug, Clone, Copy)]
|
||||
pub enum SinkStatus {
|
||||
Running,
|
||||
Closed,
|
||||
|
|
Loading…
Reference in a new issue