From ff8efca5b3df59406d80006bf3fe210a385d6ef8 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 20 Apr 2025 20:54:13 -0400 Subject: [PATCH] Warning fix --- src/callers/song.rs | 4 ++-- src/main.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/callers/song.rs b/src/callers/song.rs index ce9c174..8e7968d 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -35,8 +35,8 @@ mod song_queue { INSERT INTO "songQueue" (data, filename) VALUES($1, $2) RETURNING id; "#, ) - .bind(&data) - .bind(&filename) + .bind(data) + .bind(filename) .fetch_one(pool) .await .map_err(|e| { diff --git a/src/main.rs b/src/main.rs index 39fa5b1..52f60e9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -116,7 +116,8 @@ pub async fn root() -> &'static str { mod tests { use crate::db; - use tower::ServiceExt; + // Might need later + // use tower::ServiceExt; mod db_mgr { use std::str::FromStr;