chore: cargo clippy --fix

This commit is contained in:
Henrik Friedrichsen
2025-04-11 10:09:03 +02:00
parent 4b3aaef2c7
commit 5d598e29bd
3 changed files with 6 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ pub fn ms_to_hms(duration: u32) -> String {
pub fn cache_path_for_url(url: String) -> std::path::PathBuf {
let mut path = crate::config::cache_path("covers");
path.push(url.split('/').last().unwrap());
path.push(url.split('/').next_back().unwrap());
path
}