Warning fix
This commit is contained in:
+2
-2
@@ -35,8 +35,8 @@ mod song_queue {
|
|||||||
INSERT INTO "songQueue" (data, filename) VALUES($1, $2) RETURNING id;
|
INSERT INTO "songQueue" (data, filename) VALUES($1, $2) RETURNING id;
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
.bind(&data)
|
.bind(data)
|
||||||
.bind(&filename)
|
.bind(filename)
|
||||||
.fetch_one(pool)
|
.fetch_one(pool)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
|
|||||||
+2
-1
@@ -116,7 +116,8 @@ pub async fn root() -> &'static str {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use crate::db;
|
use crate::db;
|
||||||
|
|
||||||
use tower::ServiceExt;
|
// Might need later
|
||||||
|
// use tower::ServiceExt;
|
||||||
|
|
||||||
mod db_mgr {
|
mod db_mgr {
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|||||||
Reference in New Issue
Block a user