Running cargo clippy -- -Dwarnings locally on commit e34510a68e6bfb3ded5ed284ea3a264368544cf9 results in the following error. This error does not appear in the CI pipeline.
error: length comparison to one
--> src/user/routes.rs:14:8
|
14 | if users.len() < 1 {
| ^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `users.is_empty()`
|
= note: `-D clippy::len-zero` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
error: aborting due to previous error
error: could not compile `server`
To learn more, run the command again with --verbose.
Running
cargo clippy -- -Dwarnings
locally on commit e34510a68e6bfb3ded5ed284ea3a264368544cf9 results in the following error. This error does not appear in the CI pipeline.