Silence warnings, run cargo fmt
This commit is contained in:
parent
fe1c1d3655
commit
af1c767f5f
77 changed files with 1904 additions and 903 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue