Error: CLIPPY_WARNING: [#def1] crates/blockdev/src/blockdev.rs:142:9: warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` # | # 142 | / self.find_colocated_esps()? # 143 | | .and_then(|mut v| Some(v.remove(0))) # | |________________________________________________^ help: try: `self.find_colocated_esps()?.map(|mut v| v.remove(0))` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#bind_instead_of_map # = note: `#[warn(clippy::bind_instead_of_map)]` on by default Error: CLIPPY_WARNING: [#def2] crates/lib/src/bootc_composefs/boot.rs:1303:9: warning: unnecessary use of `to_string` # | # 1303 | &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.94.0/index.html#unnecessary_to_owned # = note: `#[warn(clippy::unnecessary_to_owned)]` on by default Error: CLIPPY_WARNING: [#def3] crates/lib/src/bootc_composefs/gc.rs:388:51: warning: unnecessary use of `to_string` # | # 388 | let expected_tag = bootc_tag_for_manifest(&manifest_digest.to_string()); # | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `manifest_digest.as_ref()` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#unnecessary_to_owned Error: CLIPPY_WARNING: [#def4] crates/lib/src/bootc_composefs/repo.rs:88:38: warning: unnecessary use of `to_string` # | # 88 | let tag = 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.94.0/index.html#unnecessary_to_owned Error: CLIPPY_WARNING: [#def5] crates/lib/src/bootc_composefs/repo.rs:264:38: warning: unnecessary use of `to_string` # | # 264 | let tag = 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.94.0/index.html#unnecessary_to_owned Error: CLIPPY_WARNING: [#def6] crates/lib/src/podman_client.rs:219:30: warning: redundant closure # | # 219 | .map(|b| Ok::<_, std::io::Error>(b)), # | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Ok::<_, std::io::Error>` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#redundant_closure # = note: `#[warn(clippy::redundant_closure)]` on by default Error: CLIPPY_WARNING: [#def7] crates/xtask/src/xtask.rs:242:9: warning: this `if` statement can be collapsed # | # 242 | / if let Ok(toplevel_path) = Command::new("git") # 243 | | .args(["rev-parse", "--show-toplevel"]) # 244 | | .output() # ... | # 250 | | } # | |_________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#collapsible_if # help: collapse nested if block # | # 244 ~ .output() # 245 ~ && toplevel_path.status.success() { # 246 | let path = String::from_utf8(toplevel_path.stdout)?; # 247 | std::env::set_current_dir(path.trim()).context("Changing to toplevel")?; # 248 ~ } # | Error: CLIPPY_WARNING: [#def8] crates/xtask/src/xtask.rs:436:13: warning: this `if` statement can be collapsed # | # 436 | / if let Some(name) = name.to_str() { # 437 | | if name.ends_with(".src.rpm") { # 438 | | sh.remove_path(name)?; # 439 | | } # 440 | | } # | |_____________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#collapsible_if # help: collapse nested if block # | # 436 ~ if let Some(name) = name.to_str() # 437 ~ && name.ends_with(".src.rpm") { # 438 | sh.remove_path(name)?; # 439 ~ } # |
| analyzer-version-clippy | 1.94.1 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.94.1 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.0.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-36.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | bootc-202604060640.gc12d1884cc-1 |
| diffbase-store-results-to | /tmp/tmppa3h5h7j/bootc-202604060640.gc12d1884cc-1.tar.xz |
| diffbase-time-created | 2026-04-07 01:30:12 |
| diffbase-time-finished | 2026-04-07 01:53:06 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmppa3h5h7j/bootc-202604060640.gc12d1884cc-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmppa3h5h7j/bootc-202604060640.gc12d1884cc-1.src.rpm' |
| diffbase-tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-36.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | bootc-202604062352.gc9364267d1-1 |
| store-results-to | /tmp/tmp5x21oxss/bootc-202604062352.gc9364267d1-1.tar.xz |
| time-created | 2026-04-07 01:53:30 |
| time-finished | 2026-04-07 02:18:33 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp5x21oxss/bootc-202604062352.gc9364267d1-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp5x21oxss/bootc-202604062352.gc9364267d1-1.src.rpm' |
| tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9 |