style(backend): run cargo fmt across the workspace
This commit is contained in:
parent
a109d7bb99
commit
f51d3bf0f8
4 changed files with 17 additions and 11 deletions
|
|
@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -214,7 +214,8 @@ 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")
|
||||
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
|
||||
|
|
|
|||
|
|
@ -80,6 +80,12 @@ mod tests {
|
|||
assert!(find(Method::PUT, "/configs/3").is_some());
|
||||
assert!(find(Method::GET, "/configs/shared/ABCD").is_some());
|
||||
assert!(find(Method::GET, "/showcase").is_some());
|
||||
assert!(find(Method::GET, "/showcase/11111111-1111-1111-1111-111111111111").is_some());
|
||||
assert!(
|
||||
find(
|
||||
Method::GET,
|
||||
"/showcase/11111111-1111-1111-1111-111111111111"
|
||||
)
|
||||
.is_some()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,8 +103,5 @@ async fn cors_exposes_retry_after_so_js_can_read_it() {
|
|||
.post("/auth/login")
|
||||
.add_header("origin", "http://localhost:5173")
|
||||
.await;
|
||||
assert_eq!(
|
||||
res.header("access-control-expose-headers"),
|
||||
"retry-after"
|
||||
);
|
||||
assert_eq!(res.header("access-control-expose-headers"), "retry-after");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue