More warning fixes

This commit is contained in:
kdeng00
2025-06-29 17:25:23 -04:00
parent bd1929d5d2
commit c0af1c3310
3 changed files with 22 additions and 22 deletions
+8 -8
View File
@@ -114,7 +114,7 @@ pub mod db {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error inserting: {}", e); eprintln!("Error inserting: {e:?}");
}); });
match result { match result {
@@ -163,7 +163,7 @@ pub mod db {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error querying data: {:?}", e); eprintln!("Error querying data: {e:?}");
}); });
match result { match result {
@@ -194,7 +194,7 @@ pub mod db {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error querying data: {:?}", e); eprintln!("Error querying data: {e:?}");
}); });
match result { match result {
@@ -225,7 +225,7 @@ pub mod db {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error querying data: {:?}", e); eprintln!("Error querying data: {e:?}");
}); });
match result { match result {
@@ -250,7 +250,7 @@ pub mod db {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error querying data: {:?}", e); eprintln!("Error querying data: {e}");
}); });
match result { match result {
@@ -275,7 +275,7 @@ pub mod db {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error updating query: {:?}", e); eprintln!("Error updating query: {e}");
}); });
match result { match result {
@@ -307,7 +307,7 @@ pub mod cov_db {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error inserting: {}", e); eprintln!("Error inserting: {e}");
}); });
match result { match result {
@@ -461,7 +461,7 @@ pub mod endpoint {
// TODO: Make the conent disposition more dynamic // TODO: Make the conent disposition more dynamic
headers.insert( headers.insert(
axum::http::header::CONTENT_DISPOSITION, axum::http::header::CONTENT_DISPOSITION,
format!("attachment; filename=\"{}.jpg\"", id) format!("attachment; filename=\"{id}.jpg\"")
.parse() .parse()
.unwrap(), .unwrap(),
); );
+4 -4
View File
@@ -107,7 +107,7 @@ pub mod metadata_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error inserting: {}", e); eprintln!("Error inserting: {e}");
}); });
match result { match result {
@@ -135,7 +135,7 @@ pub mod metadata_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error inserting: {}", e); eprintln!("Error inserting: {e}");
}); });
match result { match result {
@@ -174,7 +174,7 @@ pub mod metadata_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error inserting: {}", e); eprintln!("Error inserting: {e}");
}); });
match result { match result {
@@ -241,7 +241,7 @@ pub mod endpoint {
match params.id { match params.id {
Some(id) => { Some(id) => {
println!("Something works {:?}", id); println!("Something works {id}");
match super::metadata_queue::get_with_id(&pool, &id).await { match super::metadata_queue::get_with_id(&pool, &id).await {
Ok(item) => { Ok(item) => {
+10 -10
View File
@@ -189,7 +189,7 @@ pub mod song_db {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error inserting query: {:?}", e); eprintln!("Error inserting query: {e}");
}); });
match result { match result {
@@ -223,7 +223,7 @@ pub mod song_db {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error querying data: {:?}", e); eprintln!("Error querying data: {e}");
}); });
match result { match result {
@@ -339,7 +339,7 @@ mod song_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error inserting: {}", e); eprintln!("Error inserting: {e}");
}); });
match result { match result {
@@ -369,7 +369,7 @@ mod song_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error inserting: {:?}", e); eprintln!("Error inserting: {e}");
}); });
match result { match result {
@@ -401,7 +401,7 @@ mod song_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error inserting: {}", e); eprintln!("Error inserting: {e}");
}); });
match result { match result {
@@ -436,7 +436,7 @@ mod song_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error selecting: {:?}", e); eprintln!("Error selecting: {e}");
}); });
match result { match result {
@@ -463,7 +463,7 @@ mod song_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error updating record {:?}", e); eprintln!("Error updating record {e}");
}); });
match result { match result {
@@ -488,7 +488,7 @@ mod song_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error querying data: {:?}", e); eprintln!("Error querying data: {e}");
}); });
match result { match result {
@@ -523,7 +523,7 @@ mod song_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error updating record: {:?}", e); eprintln!("Error updating record: {e}");
}); });
match result { match result {
@@ -546,7 +546,7 @@ mod song_queue {
.fetch_one(pool) .fetch_one(pool)
.await .await
.map_err(|e| { .map_err(|e| {
eprintln!("Error inserting: {}", e); eprintln!("Error inserting: {e}");
}); });
match result { match result {