Refactoring (#149)

* Warning fixes

* More warning fixes

* Cargo.toml cleanup
This commit was merged in pull request #149.
This commit is contained in:
KD
2025-06-29 17:33:45 -04:00
committed by GitHub
parent 8c93429647
commit 3cde57dca8
5 changed files with 25 additions and 27 deletions
+12 -12
View File
@@ -189,7 +189,7 @@ pub mod song_db {
.fetch_one(pool)
.await
.map_err(|e| {
eprintln!("Error inserting query: {:?}", e);
eprintln!("Error inserting query: {e}");
});
match result {
@@ -223,7 +223,7 @@ pub mod song_db {
.fetch_one(pool)
.await
.map_err(|e| {
eprintln!("Error querying data: {:?}", e);
eprintln!("Error querying data: {e}");
});
match result {
@@ -339,7 +339,7 @@ mod song_queue {
.fetch_one(pool)
.await
.map_err(|e| {
eprintln!("Error inserting: {}", e);
eprintln!("Error inserting: {e}");
});
match result {
@@ -369,7 +369,7 @@ mod song_queue {
.fetch_one(pool)
.await
.map_err(|e| {
eprintln!("Error inserting: {:?}", e);
eprintln!("Error inserting: {e}");
});
match result {
@@ -401,7 +401,7 @@ mod song_queue {
.fetch_one(pool)
.await
.map_err(|e| {
eprintln!("Error inserting: {}", e);
eprintln!("Error inserting: {e}");
});
match result {
@@ -436,7 +436,7 @@ mod song_queue {
.fetch_one(pool)
.await
.map_err(|e| {
eprintln!("Error selecting: {:?}", e);
eprintln!("Error selecting: {e}");
});
match result {
@@ -463,7 +463,7 @@ mod song_queue {
.fetch_one(pool)
.await
.map_err(|e| {
eprintln!("Error updating record {:?}", e);
eprintln!("Error updating record {e}");
});
match result {
@@ -488,7 +488,7 @@ mod song_queue {
.fetch_one(pool)
.await
.map_err(|e| {
eprintln!("Error querying data: {:?}", e);
eprintln!("Error querying data: {e}");
});
match result {
@@ -523,7 +523,7 @@ mod song_queue {
.fetch_one(pool)
.await
.map_err(|e| {
eprintln!("Error updating record: {:?}", e);
eprintln!("Error updating record: {e}");
});
match result {
@@ -546,7 +546,7 @@ mod song_queue {
.fetch_one(pool)
.await
.map_err(|e| {
eprintln!("Error inserting: {}", e);
eprintln!("Error inserting: {e}");
});
match result {
@@ -641,7 +641,7 @@ pub mod endpoint {
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
axum::extract::Path(id): axum::extract::Path<uuid::Uuid>,
) -> (StatusCode, axum::response::Response) {
println!("Id: {:?}", id);
println!("Id: {id}");
match song_queue::get_data(&pool, &id).await {
Ok(data) => {
@@ -654,7 +654,7 @@ pub mod endpoint {
);
headers.insert(
axum::http::header::CONTENT_DISPOSITION,
format!("attachment; filename=\"{}.flac\"", id)
format!("attachment; filename=\"{id}.flac\"")
.parse()
.unwrap(),
);