From 68686d4a305e853606be621b6383fab9cc23df3e Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Mon, 14 Jul 2025 19:37:05 -0400 Subject: [PATCH] Warning fixes --- src/callers/song.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callers/song.rs b/src/callers/song.rs index a06cabb..bf17ca9 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -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),