1
0
Fork 0
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:
Guillaume Desmottes 2023-01-02 19:01:35 +01:00
parent f72048e5e1
commit 7f2cb684c9
8 changed files with 10 additions and 16 deletions

View file

@ -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;