Skip to content

start adding mining to pathfinder #300

start adding mining to pathfinder

start adding mining to pathfinder #300

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy succeeded Oct 11, 2023 in 1s

clippy

3 warnings

Details

Results

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

Versions

  • rustc 1.75.0-nightly (d627cf07c 2023-10-10)
  • cargo 1.75.0-nightly (794d0a825 2023-10-03)
  • clippy 0.1.75 (d627cf0 2023-10-10)

Annotations

Check warning on line 25 in azalea/src/container.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified

warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified
  --> azalea/src/container.rs:25:5
   |
25 |     async fn open_container(&mut self, pos: BlockPos) -> Option<ContainerHandle>;
   |     ^^^^^
   |
   = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future`
help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`
   |
25 -     async fn open_container(&mut self, pos: BlockPos) -> Option<ContainerHandle>;
25 +     fn open_container(&mut self, pos: BlockPos) -> impl std::future::Future<Output = Option<ContainerHandle>> + Send;
   |

Check warning on line 85 in azalea/src/bot.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified

warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified
  --> azalea/src/bot.rs:85:5
   |
85 |     async fn mine(&mut self, position: BlockPos);
   |     ^^^^^
   |
   = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future`
   = note: `#[warn(async_fn_in_trait)]` on by default
help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`
   |
85 -     async fn mine(&mut self, position: BlockPos);
85 +     fn mine(&mut self, position: BlockPos) -> impl std::future::Future<Output = ()> + Send;
   |

Check warning on line 69 in azalea/src/auto_tool.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> azalea/src/auto_tool.rs:69:17
   |
69 |                 &menu,
   |                 ^^^^^ help: change this to: `menu`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default