cargo clippy

This commit is contained in:
Ethan O'Brien
2024-11-21 21:09:36 -06:00
parent b21deaee5f
commit 2a4d927a41
11 changed files with 30 additions and 36 deletions

View File

@ -60,7 +60,7 @@ fn get_random_song() -> JsonValue {
}
fn switch_music(event: &mut JsonValue, index: i32) {
if index > 5 || index < 1 {
if !(1..=5).contains(&index) {
return;
}