esp-rs / rust

Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266
https://www.rust-lang.org
Other
732 stars 35 forks source link

Clippy error in test_result.rs #231

Open armandas opened 1 month ago

armandas commented 1 month ago

When I run clippy on my project, I get the following error:

error[E0308]: mismatched types
   --> /home/armandas/.rustup/toolchains/esp/lib/rustlib/src/rust/library/test/src/test_result.rs:102:18
    |
101 |         None => match status.signal() {
    |                       --------------- this expression has type `Option<i32>`
102 |             Some(libc::SIGABRT) => TestResult::TrFailed,
    |                  ^^^^^^^^^^^^^ expected `i32`, found `usize`

Meta

rustc --version --verbose:

rustc 1.80.0-nightly (1b259e0b8 2024-07-22) (1.80.0.0)
binary: rustc
commit-hash: 1b259e0b8b2129dd3d62819a32f6d9b287e6b86c
commit-date: 2024-07-22
host: x86_64-unknown-linux-gnu
release: 1.80.0-nightly
LLVM version: 17.0.1