Newly introduced findings

List of Findings

Error: CLIPPY_WARNING: [#def1]
crates/lib/src/bootc_composefs/export.rs:52:5: warning: unneeded `return` statement
#     |
#  52 |     return Ok(Some((header.clone(), item)));
#     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#     |
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#needless_return
#  help: remove `return`
#     |
#  52 -     return Ok(Some((header.clone(), item)));
#  52 +     Ok(Some((header.clone(), item)))
#     |

Error: CLIPPY_WARNING: [#def2]
crates/lib/src/bootc_composefs/export.rs:164:21: warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
#      |
#  164 | /                     match &leaf_content {
#  165 | |                         LeafContent::Regular(reg) => match reg {
#  166 | |                             RegularFile::Inline(items) => {
#  167 | |                                 v[..hsize].copy_from_slice(items);
#  ...   |
#  178 | |                         _ => {}
#  179 | |                     }
#      | |_____________________^
#      |
#      = note: you might want to preserve the comments from inside the `match`
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#single_match
#      = note: `#[warn(clippy::single_match)]` on by default
#  help: try
#      |
#  164 ~                     if let LeafContent::Regular(reg) = &leaf_content { match reg {
#  165 +                         RegularFile::Inline(items) => {
#  166 +                             v[..hsize].copy_from_slice(items);
#  167 +                         }
#  168 + 
#  169 +                         RegularFile::External(obj_id, ..) => {
#  170 +                             let mut file = File::from(booted_cfs.repo.open_object(obj_id)?);
#  171 +                             file.read_exact(&mut v)?;
#  172 +                         }
#  173 +                     } }
#      |

Error: CLIPPY_WARNING: [#def3]
crates/lib/src/bootc_composefs/export.rs:210:36: warning: using `clone` on type `Option<&History>` which implements the `Copy` trait
#      |
#  210 |           let previous_description = history_entry
#      |  ____________________________________^
#  211 | |             .clone()
#      | |____________________^ help: try removing the `clone` call: `history_entry`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#clone_on_copy
#      = note: `#[warn(clippy::clone_on_copy)]` on by default

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
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-221.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebootc-202512291331.g5ec2c5ce69-1
diffbase-store-results-to/tmp/tmp82zviyq8/bootc-202512291331.g5ec2c5ce69-1.tar.xz
diffbase-time-created2026-01-06 11:11:56
diffbase-time-finished2026-01-06 11:24:35
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmp82zviyq8/bootc-202512291331.g5ec2c5ce69-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp82zviyq8/bootc-202512291331.g5ec2c5ce69-1.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-221.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namebootc-202601061045.g72d794253c-1
store-results-to/tmp/tmphbmya_zi/bootc-202601061045.g72d794253c-1.tar.xz
time-created2026-01-06 11:25:04
time-finished2026-01-06 11:37:17
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmphbmya_zi/bootc-202601061045.g72d794253c-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmphbmya_zi/bootc-202601061045.g72d794253c-1.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9