Skip to content

fix parsing textcomponents failing when it's translatable and has a p…

Sign in for the full log view
GitHub Actions / clippy succeeded Feb 24, 2024 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.78.0-nightly (8f359beca 2024-02-23)
  • cargo 1.78.0-nightly (194a60b29 2024-02-21)
  • clippy 0.1.78 (8f359be 2024-02-23)

Annotations

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

See this annotation in the file changed.

@github-actions github-actions / clippy

this `let...else` may be rewritten with the `?` operator

warning: this `let...else` may be rewritten with the `?` operator
   --> azalea-chat/src/component.rs:400:21
    |
400 | /                     let Some(_nbt) = compound.get("nbt") else {
401 | |                         return None;
402 | |                     };
    | |______________________^ help: replace it with: `let _nbt = compound.get("nbt")?;`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
    = note: `#[warn(clippy::question_mark)]` on by default