Skip to content

make packet an Arc in PacketEvent #317

make packet an Arc in PacketEvent

make packet an Arc in PacketEvent #317

GitHub Actions / clippy succeeded Nov 18, 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 (283170175 2023-11-17)
  • cargo 1.76.0-nightly (2c03e0e2d 2023-11-16)
  • clippy 0.1.76 (2831701 2023-11-17)

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