eisen-oxid / thermit

An exciting and inspiring messenger written in Rust 🦀 ✉️
MIT License
3 stars 0 forks source link

Investigate why clippy doesn't find errors in CI #17

Open sirkrypt0 opened 3 years ago

sirkrypt0 commented 3 years ago

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.
frcroth commented 3 years ago

What is the exit code of your command locally?

sirkrypt0 commented 3 years ago

What is the exit code of your command locally?

It is 101