Newly introduced findings

List of Findings

Error: CLIPPY_WARNING: [#def1]
crates/lib/src/cli.rs:2114:75: warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
#       |
#  2114 |                         std::iter::once(OsString::from("--system")).chain(args.into_iter()),
#       |                                                                           ^^^^^^^^^^^^^^^^
#       |
#  note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
#      --> library/core/src/iter/traits/iterator.rs:510:11
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#useless_conversion
#  help: consider removing the `.into_iter()`
#       |
#  2114 -                         std::iter::once(OsString::from("--system")).chain(args.into_iter()),
#  2114 +                         std::iter::once(OsString::from("--system")).chain(args),
#       |

Error: CLIPPY_WARNING: [#def2]
crates/lib/src/deploy.rs:551:62: warning: unnecessary use of `to_string`
#      |
#  551 |         crate::bootc_composefs::repo::bootc_tag_for_manifest(&pull_result.manifest_digest.to_string());
#      |                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `pull_result.manifest_digest.as_ref()`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_to_owned

Error: CLIPPY_WARNING: [#def3]
crates/lib/src/image.rs:146:30: warning: in an `if` condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
#      |
#  146 |               let image_type = if {
#      |  ______________________________^
#  147 | |                 let id = &entry.id;
#  148 | |                 composefs_config_digests.contains(&format!("sha256:{id}"))
#  149 | |                     || composefs_config_digests.contains(id.as_str())
#  150 | |             } {
#      | |_____________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#blocks_in_conditions
#      = note: `#[warn(clippy::blocks_in_conditions)]` on by default
#  help: try
#      |
#  146 ~             let image_type = let res = {
#  147 +                 let id = &entry.id;
#  148 +                 composefs_config_digests.contains(&format!("sha256:{id}"))
#  149 +                     || composefs_config_digests.contains(id.as_str())
#  150 ~             }; if res {
#      |

Error: CLIPPY_WARNING: [#def4]
crates/lib/src/image.rs:383:35: warning: you are using an explicit closure for cloning elements
#      |
#  383 |                     .and_then(|l| l.get("org.opencontainers.image.ref.name").map(|s| s.clone()))
#      |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `cloned` method: `l.get("org.opencontainers.image.ref.name").cloned()`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#map_clone
#      = note: `#[warn(clippy::map_clone)]` on by default

Error: CLIPPY_WARNING: [#def5]
crates/lib/src/image.rs:925:13: warning: unnecessary use of `to_string`
#      |
#  925 |             &pull_result.manifest_digest.to_string(),
#      |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `pull_result.manifest_digest.as_ref()`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_to_owned

Error: CLIPPY_WARNING: [#def6]
crates/ostree-ext/src/container/composefs_import.rs:150:17: warning: this `map_or` can be simplified
#      |
#  150 |             && !value.last().copied().map_or(true, |b| b == 0)
#      |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_map_or
#      = note: `#[warn(clippy::unnecessary_map_or)]` on by default
#  help: use `is_none_or` instead
#      |
#  150 -             && !value.last().copied().map_or(true, |b| b == 0)
#  150 +             && !value.last().copied().is_none_or(|b| b == 0)
#      |

Error: CLIPPY_WARNING: [#def7]
crates/ostree-ext/src/container/composefs_import.rs:503:25: warning: this `map_or` can be simplified
#      |
#  503 |                     && !value.last().copied().map_or(true, |b| b == 0)
#      |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_map_or
#  help: use `is_none_or` instead
#      |
#  503 -                     && !value.last().copied().map_or(true, |b| b == 0)
#  503 +                     && !value.last().copied().is_none_or(|b| b == 0)
#      |

Error: CLIPPY_WARNING: [#def8]
crates/xtask/src/tmt.rs:1245:9: warning: this `if` statement can be collapsed
#       |
#  1245 | /         if let serde_yaml::Value::Mapping(map) = &test.tmt {
#  1246 | |             if let Some(adjust) = map.get(&serde_yaml::Value::String(FIELD_ADJUST.to_string())) {
#  1247 | |                 plan_value.insert(
#  1248 | |                     serde_yaml::Value::String(FIELD_ADJUST.to_string()),
#  ...    |
#  1252 | |         }
#       | |_________^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_if
#  help: collapse nested if block
#       |
#  1245 ~         if let serde_yaml::Value::Mapping(map) = &test.tmt
#  1246 ~             && let Some(adjust) = map.get(&serde_yaml::Value::String(FIELD_ADJUST.to_string())) {
#  1247 |                 plan_value.insert(
#   ...
#  1250 |                 );
#  1251 ~             }
#       |

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-39.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.20260521.202309.g4b8e190.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebootc-202605211731.ge4dea2bbc4-1
diffbase-store-results-to/tmp/tmponq9t7t7/bootc-202605211731.ge4dea2bbc4-1.tar.xz
diffbase-time-created2026-05-23 02:56:22
diffbase-time-finished2026-05-23 03:25:14
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmponq9t7t7/bootc-202605211731.ge4dea2bbc4-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmponq9t7t7/bootc-202605211731.ge4dea2bbc4-1.src.rpm'
diffbase-tool-versioncsmock-3.8.5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-39.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260521.202309.g4b8e190.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namebootc-202605230203.g268a7bcddb-1
store-results-to/tmp/tmpj4dpg5l3/bootc-202605230203.g268a7bcddb-1.tar.xz
time-created2026-05-23 03:25:46
time-finished2026-05-23 03:54:40
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpj4dpg5l3/bootc-202605230203.g268a7bcddb-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpj4dpg5l3/bootc-202605230203.g268a7bcddb-1.src.rpm'
tool-versioncsmock-3.8.5-1.el9