Newly introduced findings

List of Findings

Error: CLIPPY_WARNING: [#def1]
lib/src/spec.rs:172:29: warning: this `map_or` can be simplified
#      |
#  172 |             Slot::Staged => self.staged.as_ref().map_or(false, |s| s.pinned),
#      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
#  help: use is_some_and instead
#      |
#  172 -             Slot::Staged => self.staged.as_ref().map_or(false, |s| s.pinned),
#  172 +             Slot::Staged => self.staged.as_ref().is_some_and(|s| s.pinned),
#      |

Error: CLIPPY_WARNING: [#def2]
lib/src/spec.rs:173:29: warning: this `map_or` can be simplified
#      |
#  173 |             Slot::Booted => self.booted.as_ref().map_or(false, |s| s.pinned),
#      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
#  help: use is_some_and instead
#      |
#  173 -             Slot::Booted => self.booted.as_ref().map_or(false, |s| s.pinned),
#  173 +             Slot::Booted => self.booted.as_ref().is_some_and(|s| s.pinned),
#      |

Error: CLIPPY_WARNING: [#def3]
lib/src/spec.rs:174:31: warning: this `map_or` can be simplified
#      |
#  174 |             Slot::Rollback => self.rollback.as_ref().map_or(false, |s| s.pinned),
#      |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
#  help: use is_some_and instead
#      |
#  174 -             Slot::Rollback => self.rollback.as_ref().map_or(false, |s| s.pinned),
#  174 +             Slot::Rollback => self.rollback.as_ref().is_some_and(|s| s.pinned),
#      |

Error: CLIPPY_WARNING: [#def4]
lib/src/status.rs:259:10: warning: usage of `bool::then` in `filter_map`
#      |
#  259 |           .filter_map(|d| {
#      |  __________^
#  260 | |             d.is_pinned()
#  261 | |                 .then(|| boot_entry_from_deployment(sysroot, d).ok())
#  262 | |         })
#      | |__________^ help: use `filter` then `map` instead: `filter(|&d| d.is_pinned()).map(|d| boot_entry_from_deployment(sysroot, d).ok())`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_bool_then
#      = note: `#[warn(clippy::filter_map_bool_then)]` on by default

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-40.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250426.175117.g5eea38e.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebootc-202504170123.gdf879ed613-1
diffbase-store-results-to/tmp/tmptbxvutky/bootc-202504170123.gdf879ed613-1.tar.xz
diffbase-time-created2025-04-26 21:57:28
diffbase-time-finished2025-04-26 22:04:18
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmptbxvutky/bootc-202504170123.gdf879ed613-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmptbxvutky/bootc-202504170123.gdf879ed613-1.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-40.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250426.175117.g5eea38e.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namebootc-202504262134.g5f6622cf81-1
store-results-to/tmp/tmp4dhn25pe/bootc-202504262134.g5f6622cf81-1.tar.xz
time-created2025-04-26 22:04:43
time-finished2025-04-26 22:11:09
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp4dhn25pe/bootc-202504262134.g5f6622cf81-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp4dhn25pe/bootc-202504262134.g5f6622cf81-1.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9