diff options
| author | Fuwn <[email protected]> | 2024-03-05 05:31:22 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-03-05 05:31:22 -0800 |
| commit | 093c7ac678628b478f0b8888108ef50988aee2ad (patch) | |
| tree | 6c73cb3ca0c5e481816bcf85992283c5df2fb8e9 /src/modules/api | |
| parent | fix(response): unused members (diff) | |
| download | locus-093c7ac678628b478f0b8888108ef50988aee2ad.tar.xz locus-093c7ac678628b478f0b8888108ef50988aee2ad.zip | |
feat(rustc): bump nightly
Diffstat (limited to 'src/modules/api')
| -rw-r--r-- | src/modules/api/sydney.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/api/sydney.rs b/src/modules/api/sydney.rs index f2b7e99..0767328 100644 --- a/src/modules/api/sydney.rs +++ b/src/modules/api/sydney.rs @@ -42,7 +42,7 @@ pub fn module(router: &mut windmark::router::Router) { if let Ok(response_content) = response.json::<Vec<Tags>>().await { let response_content: Vec<Tags> = response_content; - if let Some(first_tag) = response_content.get(0) { + if let Some(first_tag) = response_content.first() { content = first_tag.name().clone(); } |