Skip to content

Merge branch 'azalea-rs:main' into custom_auth #67

Merge branch 'azalea-rs:main' into custom_auth

Merge branch 'azalea-rs:main' into custom_auth #67

GitHub Actions / clippy succeeded Dec 26, 2024 in 0s

clippy

2 warnings

Details

Results

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

Versions

  • rustc 1.85.0-nightly (7c002ff9a 2024-12-25)
  • cargo 1.85.0-nightly (c86f4b3a1 2024-12-24)
  • clippy 0.1.85 (7c002ff9a7 2024-12-25)

Annotations

Check warning on line 532 in azalea/src/pathfinder/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

very complex type used. Consider factoring parts into `type` definitions

warning: very complex type used. Consider factoring parts into `type` definitions
   --> azalea/src/pathfinder/mod.rs:524:16
    |
524 |       mut query: Query<(
    |  ________________^
525 | |         Entity,
526 | |         &mut Pathfinder,
527 | |         &mut ExecutingPath,
...   |
531 | |         &Inventory,
532 | |     )>,
    | |______^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
    = note: `#[warn(clippy::type_complexity)]` on by default

Check warning on line 343 in azalea/src/pathfinder/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unneeded late initialization

warning: unneeded late initialization
   --> azalea/src/pathfinder/mod.rs:343:5
    |
343 |     let path;
    |     ^^^^^^^^^ created here
...
378 |     path = movements.into_iter().collect::<VecDeque<_>>();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
    = note: `#[warn(clippy::needless_late_init)]` on by default
help: move the declaration `path` here
    |
343 ~     
344 |
...
377 |
378 ~     let path = movements.into_iter().collect::<VecDeque<_>>();
    |