mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
fix clippy warnings
This commit is contained in:
parent
f72048e5e1
commit
7f2cb684c9
8 changed files with 10 additions and 16 deletions
|
@ -109,7 +109,7 @@ impl AudioItem {
|
|||
)
|
||||
};
|
||||
|
||||
let popularity = track.popularity.max(0).min(100) as u8;
|
||||
let popularity = track.popularity.clamp(0, 100) as u8;
|
||||
let number = track.number.max(0) as u32;
|
||||
let disc_number = track.disc_number.max(0) as u32;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue