Clippy warning fix

This commit is contained in:
kdeng00
2025-05-19 21:42:38 -04:00
parent b301aba139
commit 7bf19c7784
+5 -5
View File
@@ -135,14 +135,14 @@ pub mod endpoint {
axum::Json<super::response::link::Response>, axum::Json<super::response::link::Response>,
) { ) {
let mut response = super::response::link::Response::default(); let mut response = super::response::link::Response::default();
let coverart_id = payload.coverart_id; let id = payload.coverart_id;
let song_queue_id = payload.song_queue_id; let song_id = payload.song_queue_id;
match super::db::update(&pool, &coverart_id, &song_queue_id).await { match super::db::update(&pool, &id, &song_id).await {
Ok(_o) => { Ok(_o) => {
response.data.push(super::response::link::Id { response.data.push(super::response::link::Id {
song_queue_id: song_queue_id, song_queue_id: song_id,
coverart_id: coverart_id, coverart_id: id,
}); });
(axum::http::StatusCode::OK, axum::Json(response)) (axum::http::StatusCode::OK, axum::Json(response))