clippy fixes

This commit is contained in:
2025-06-28 23:22:24 +02:00
parent 9aed0e9381
commit f6e94cfd32
2 changed files with 3 additions and 3 deletions

View File

@@ -70,11 +70,11 @@ fn on_spawn_sounds(
}
}
PlaySound::Head(name) => {
let filename = format!("{}.ogg", name);
let filename = format!("{name}.ogg");
assets
.head
.get(filename.as_str())
.unwrap_or_else(|| panic!("invalid head '{}'", filename))
.unwrap_or_else(|| panic!("invalid head '{filename}'"))
.clone()
}
};