Skip to content

improve docs a bit #316

improve docs a bit

improve docs a bit #316

GitHub Actions / clippy succeeded Nov 12, 2023 in 0s

clippy

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
Note 0
Help 0

Versions

  • rustc 1.76.0-nightly (2c1b65ee1 2023-11-11)
  • cargo 1.76.0-nightly (6790a5127 2023-11-10)
  • clippy 0.1.75 (2c1b65e 2023-11-11)

Annotations

Check warning on line 441 in azalea-auth/src/auth.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `res.display_claims["xui"].get(0)`

warning: accessing first element with `res.display_claims["xui"].get(0)`
   --> azalea-auth/src/auth.rs:441:24
    |
441 |             user_hash: res.display_claims["xui"].get(0).unwrap()["uhs"].clone(),
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `res.display_claims["xui"].first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
    = note: `#[warn(clippy::get_first)]` on by default