Code formatting

This commit is contained in:
kdeng00
2025-07-28 17:01:17 -04:00
parent 0984cc600f
commit 03d9f649e4
2 changed files with 19 additions and 13 deletions
+13 -11
View File
@@ -647,10 +647,10 @@ pub mod endpoint {
}
}
pub async fn download_coverart(axum::Extension(pool): axum::Extension<sqlx::PgPool>,
axum::extract::Path(id): axum::extract::Path<uuid::Uuid>) ->
(axum::http::StatusCode, axum::response::Response) {
pub async fn download_coverart(
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
axum::extract::Path(id): axum::extract::Path<uuid::Uuid>,
) -> (axum::http::StatusCode, axum::response::Response) {
match super::cov_db::get_coverart(&pool, &id).await {
Ok(coverart) => match coverart.to_data() {
Ok(data) => {
@@ -671,13 +671,15 @@ pub mod endpoint {
(axum::http::StatusCode::OK, response)
}
Err(_err) => {
(axum::http::StatusCode::NOT_FOUND, axum::response::Response::default())
}
}
Err(_err) => {
(axum::http::StatusCode::NOT_FOUND, axum::response::Response::default())
}
Err(_err) => (
axum::http::StatusCode::NOT_FOUND,
axum::response::Response::default(),
),
},
Err(_err) => (
axum::http::StatusCode::NOT_FOUND,
axum::response::Response::default(),
),
}
}
}