Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

fix(deps): update rust crate tokio to 1.36 #125

fix(deps): update rust crate tokio to 1.36

fix(deps): update rust crate tokio to 1.36 #125

GitHub Actions / clippy succeeded Feb 2, 2024 in 0s

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 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 46 in src/handler.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression borrows a value the compiler would automatically borrow

warning: this expression borrows a value the compiler would automatically borrow
  --> src/handler.rs:46:21
   |
46 |         let msg_s = (&env_config.report_channel)
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `env_config.report_channel`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 26 in src/handler.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression borrows a value the compiler would automatically borrow

warning: this expression borrows a value the compiler would automatically borrow
  --> src/handler.rs:26:32
   |
26 |         let notes: Vec<&str> = (&config.rules)
   |                                ^^^^^^^^^^^^^^^ help: change this to: `config.rules`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 22 in src/handler.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression borrows a value the compiler would automatically borrow

warning: this expression borrows a value the compiler would automatically borrow
  --> src/handler.rs:22:12
   |
22 |         if (&msg.guild_id).filter(|v| v == &env_config.guild).is_none() {
   |            ^^^^^^^^^^^^^^^ help: change this to: `msg.guild_id`
   |
   = 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