Skip to content
GitHub Actions / clippy succeeded Dec 5, 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 (0e2dac837 2023-12-04)
  • cargo 1.76.0-nightly (623b78849 2023-12-02)
  • clippy 0.1.76 (0e2dac8 2023-12-04)

Annotations

Check warning on line 398 in azalea-chat/src/component.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `list.get(0)`

warning: accessing first element with `list.get(0)`
   --> azalea-chat/src/component.rs:398:56
    |
398 |                     &simdnbt::borrow::NbtTag::Compound(list.get(0)?.clone()),
    |                                                        ^^^^^^^^^^^ help: try: `list.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