style(backend): run cargo fmt across the workspace

This commit is contained in:
loki5512344 2026-09-29 17:48:36 +02:00
parent a109d7bb99
commit f51d3bf0f8
Signed by: boba
GPG key ID: 253067914055423B
4 changed files with 17 additions and 11 deletions

View file

@ -21,7 +21,9 @@ fn god_mode() -> SharedConfig {
"note": "god mode: только шляпа"
}),
// DOOM's release date.
updated_at: "1993-12-10T00:00:00Z".parse().expect("valid RFC3339 literal"),
updated_at: "1993-12-10T00:00:00Z"
.parse()
.expect("valid RFC3339 literal"),
}
}

View file

@ -214,11 +214,12 @@ async fn hidden_listing_is_invisible_everywhere_and_moderation_wins() {
.add_header(common::ACCOUNT_ID_HEADER, &owner)
.await
.assert_status(StatusCode::NOT_FOUND);
let still_there: i64 = sqlx::query_scalar("SELECT count(*) FROM showcase_listings WHERE id = $1")
.bind(uuid::Uuid::parse_str(&id).unwrap())
.fetch_one(&pool)
.await
.unwrap();
let still_there: i64 =
sqlx::query_scalar("SELECT count(*) FROM showcase_listings WHERE id = $1")
.bind(uuid::Uuid::parse_str(&id).unwrap())
.fetch_one(&pool)
.await
.unwrap();
assert_eq!(still_there, 1, "unpublish must not delete a hidden listing");
// Republishing a hidden slot never unhides it: 403, and it's still hidden.