From 7dfcd78592e1a3cf51f34bd8680137838dfde364 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Wed, 22 Oct 2025 20:05:12 -0400 Subject: [PATCH] tsk-209: Code formatting --- src/callers/song.rs | 1 - src/repo/queue/song.rs | 5 +---- src/repo/song.rs | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/callers/song.rs b/src/callers/song.rs index 8eacbb3..fce2095 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -202,7 +202,6 @@ pub mod response { // TODO: Might make a distinction between year and date in a song's tag at some point - /// Module for song related endpoints pub mod endpoint { use axum::{Json, http::StatusCode, response::IntoResponse}; diff --git a/src/repo/queue/song.rs b/src/repo/queue/song.rs index ab31600..3ff854c 100644 --- a/src/repo/queue/song.rs +++ b/src/repo/queue/song.rs @@ -253,10 +253,7 @@ pub async fn get_song_queue( } } -pub async fn wipe_data( - pool: &sqlx::PgPool, - id: &uuid::Uuid, -) -> Result { +pub async fn wipe_data(pool: &sqlx::PgPool, id: &uuid::Uuid) -> Result { let result = sqlx::query( r#" UPDATE "songQueue" SET data = NULL WHERE id = $1 RETURNING id; diff --git a/src/repo/song.rs b/src/repo/song.rs index 2886fd8..77d9561 100644 --- a/src/repo/song.rs +++ b/src/repo/song.rs @@ -345,4 +345,3 @@ pub async fn delete_song( Err(_) => Err(sqlx::Error::RowNotFound), } } -