Skip to content

fix FormattedText when 'extra' isn't a list of compounds #1

fix FormattedText when 'extra' isn't a list of compounds

fix FormattedText when 'extra' isn't a list of compounds #1

GitHub Actions / clippy succeeded Jan 4, 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.77.0-nightly (e51e98dde 2023-12-31)
  • cargo 1.77.0-nightly (ac6bbb332 2023-12-26)
  • clippy 0.1.77 (e51e98d 2023-12-31)

Annotations

Check warning on line 162 in azalea/src/pathfinder/world.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/src/pathfinder/world.rs:160:9
    |
160 | /         let Some(chunk) = world.chunks.get(&chunk_pos) else {
161 | |             return None;
162 | |         };
    | |__________^ help: replace it with: `let chunk = world.chunks.get(&chunk_pos)?;`
    |
    = 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