diff --git a/src/callers/queue/song.rs b/src/callers/queue/song.rs index 0a37f75..8b1e99b 100644 --- a/src/callers/queue/song.rs +++ b/src/callers/queue/song.rs @@ -511,11 +511,11 @@ pub mod endpoint { println!("Valid song"); match repo::data::get_with_song_queue_id(&pool, &song_queue_id).await { - Ok((id, file_key, _bucket, _region, _)) => { + Ok((_id, file_key, _bucket, _region, _)) => { match lr.delete(&file_key).await { Ok(_response) => { let data = labyrinth::Data { - raw_data: raw_data, + raw_data, ..Default::default() }; @@ -538,8 +538,8 @@ pub mod endpoint { { Ok(_) => { response.message = - String::from(super::super::super::response::SUCCESSFUL); - response.data.push(id); + super::super::super::response::SUCCESSFUL.to_string(); + response.data.push(song_queue_id); ( axum::http::StatusCode::OK, axum::Json(response), @@ -548,9 +548,9 @@ pub mod endpoint { Err(err) => { response.message = err.to_string(); ( - axum::http::StatusCode::INTERNAL_SERVER_ERROR, - axum::Json(response), - ) + axum::http::StatusCode::INTERNAL_SERVER_ERROR, + axum::Json(response), + ) } } }