Silence warnings, run cargo fmt

This commit is contained in:
Evan Carroll 2026-01-18 16:27:31 -06:00
parent fe1c1d3655
commit af1c767f5f
77 changed files with 1904 additions and 903 deletions

View file

@ -67,7 +67,9 @@ fn RealmLoginForm() -> impl IntoView {
struct ListResponse {
realms: Vec<RealmSummary>,
}
let response = Request::get("/api/realms?include_nsfw=false&limit=20").send().await;
let response = Request::get("/api/realms?include_nsfw=false&limit=20")
.send()
.await;
match response {
Ok(resp) if resp.ok() => resp.json::<ListResponse>().await.ok().map(|r| r.realms),
_ => None,