From 805ab2bfcd71690f8bb56ab354df34925e9b8e26 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Sun, 27 Jul 2025 14:00:00 -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 3fb53e8..b17e40b 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -1036,7 +1036,7 @@ pub mod endpoint { Err(_) => return Err((axum::http::StatusCode::INTERNAL_SERVER_ERROR, "Could not read file")), }; - let mime = mime_guess::from_path(&path).first_or_octet_stream(); + let mime = mime_guess::from_path(path).first_or_octet_stream(); let stream = tokio_util::io::ReaderStream::new(file); let rep = axum::response::Response::builder() @@ -1049,7 +1049,7 @@ pub mod endpoint { Ok(rep) } Err(_err) => { - return Err((axum::http::StatusCode::INTERNAL_SERVER_ERROR, "Could not find file")); + Err((axum::http::StatusCode::INTERNAL_SERVER_ERROR, "Could not find file")) } } }