Skip to content

fix: use lt gt operators #163

fix: use lt gt operators

fix: use lt gt operators #163

GitHub Actions / clippy failed Feb 1, 2024 in 1s

clippy

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
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 failure on line 41 in src/util/md.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

error: this expression creates a reference which is immediately dereferenced by the compiler
  --> src/util/md.rs:41:70
   |
41 |         for (k, v) in map.into_iter().filter(|(k, _)| !hack.contains(&k)) {
   |                                                                      ^^ help: change this to: `k`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `-D clippy::needless-borrow` implied by `-D clippy::all`
   = help: to override `-D clippy::all` add `#[allow(clippy::needless_borrow)]`

Check failure on line 272 in src/hot_reload/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `if` statement can be collapsed

error: this `if` statement can be collapsed
   --> src/hot_reload/mod.rs:268:33
    |
268 | / ...                   if self.builder.app.server.name == nw.proxy {
269 | | ...                       if nw.proxy_groups.contains(&group_name) {
270 | | ...                           return true;
271 | | ...                       }
272 | | ...                   }
    | |_______________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
    = note: `-D clippy::collapsible-if` implied by `-D clippy::all`
    = help: to override `-D clippy::all` add `#[allow(clippy::collapsible_if)]`
help: collapse nested if block
    |
268 ~                                 if self.builder.app.server.name == nw.proxy && nw.proxy_groups.contains(&group_name) {
269 +                                     return true;
270 +                                 }
    |