device-mapper-persistent-data-1.1.0-1.fc42

List of Findings

Error: CLIPPY_WARNING: [#def1]
device-mapper-persistent-data-1.1.0-build/src/cache/dump.rs:125:29: warning: this pattern reimplements `Option::unwrap_or`
#      |
#  125 |                   let dirty = if let Some(bit) = inner.dirty_bits.contains(cblock as usize) {
#      |  _____________________________^
#  126 | |                     bit
#  127 | |                 } else {
#  128 | |                     // default to dirty if the bitset is damaged
#  129 | |                     true
#  130 | |                 };
#      | |_________________^ help: replace with: `inner.dirty_bits.contains(cblock as usize).unwrap_or(true)`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or
#      = note: `#[warn(clippy::manual_unwrap_or)]` on by default

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-99.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namedevice-mapper-persistent-data-1.1.0-1.fc42
store-results-to/tmp/tmp9nnlid4b/device-mapper-persistent-data-1.1.0-1.fc42.tar.xz
time-created2024-11-12 23:34:43
time-finished2024-11-12 23:38:24
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp9nnlid4b/device-mapper-persistent-data-1.1.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp9nnlid4b/device-mapper-persistent-data-1.1.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9