Warning fixes

This commit is contained in:
kdeng00
2025-07-14 19:37:05 -04:00
parent 9b1c0b718f
commit 68686d4a30
+2 -2
View File
@@ -784,7 +784,7 @@ pub mod endpoint {
let dir = std::path::Path::new(&song.directory);
if !dir.exists() {
println!("Creating directory");
match std::fs::create_dir_all(&dir) {
match std::fs::create_dir_all(dir) {
Ok(_) => {
println!("Successfully created directory");
}
@@ -824,7 +824,7 @@ pub mod endpoint {
}
Err(err) => {
let song_path = song.song_path();
response.message = format!("{} Song directory: {} Filename: {} Save Path: {:?} Song Path: {:?}", err.to_string(), song.directory, song.filename, save_path, song_path);
response.message = format!("{err:?} Song directory: {} Filename: {} Save Path: {:?} Song Path: {:?}", song.directory, song.filename, save_path, song_path);
(
axum::http::StatusCode::INTERNAL_SERVER_ERROR,
axum::Json(response),