Error: CLIPPY_WARNING: [#def1] crates/lib/src/cli.rs:972:5: warning: unneeded `return` statement # | # 972 | return Ok(target); # | ^^^^^^^^^^^^^^^^^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return # = note: `#[warn(clippy::needless_return)]` on by default # help: remove `return` # | # 972 - return Ok(target); # 972 + Ok(target) # | Error: CLIPPY_WARNING: [#def2] crates/lib/src/deploy.rs:925:30: warning: useless use of `format!` # | # 925 | .with_context(|| format!("Reopening /sysroot/boot/loader as owned fd"))?, # | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Reopening /sysroot/boot/loader as owned fd".to_string()` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format Error: CLIPPY_WARNING: [#def3] crates/lib/src/install.rs:635:16: warning: inequality checks against false are unnecessary # | # 635 | if self.composefs_opts.insecure != false { # | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `self.composefs_opts.insecure` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison # = note: `#[warn(clippy::bool_comparison)]` on by default Error: CLIPPY_WARNING: [#def4] crates/lib/src/install.rs:1759:39: warning: useless conversion to the same type: `std::string::String` # | # 1759 | let mut cmdline_options = String::from(root_setup.kargs.join(" ")); # | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `root_setup.kargs.join(" ")` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion Error: CLIPPY_WARNING: [#def5] crates/lib/src/install.rs:1775:13: warning: useless use of `vec!` # | # 1775 | / vec![ # 1776 | | format!("root=UUID={DPS_UUID}"), # 1777 | | RW_KARG.to_string(), # 1778 | | format!("{COMPOSEFS_CMDLINE}={id_hex}"), # 1779 | | ] # | |_____________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec # = note: `#[warn(clippy::useless_vec)]` on by default # help: you can use an array directly # | # 1775 ~ [format!("root=UUID={DPS_UUID}"), # 1776 + RW_KARG.to_string(), # 1777 + format!("{COMPOSEFS_CMDLINE}={id_hex}")] # | Error: CLIPPY_WARNING: [#def6] crates/lib/src/install.rs:1892:20: warning: length comparison to zero # | # 1892 | if v.len() > 0 { # | ^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!v.is_empty()` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero # = note: `#[warn(clippy::len_zero)]` on by default Error: CLIPPY_WARNING: [#def7] crates/lib/src/parsers/bls_config.rs:26:1: warning: non-canonical implementation of `partial_cmp` on an `Ord` type # | # 26 | / impl PartialOrd for BLSConfig { # 27 | | fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> { # | | _______________________________________________________________________- # 28 | || self.version.partial_cmp(&other.version) # 29 | || } # | ||_____- help: change this to: `{ Some(self.cmp(other)) }` # 30 | | } # | |__^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl # = note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default Error: CLIPPY_WARNING: [#def8] crates/lib/src/status.rs:332:19: warning: slow zero-filling initialization # | # 332 | let mut buf = Vec::with_capacity(manifest.config().size() as usize); # | ___________________^ # 333 | | buf.resize(manifest.config().size() as usize, 0); # | |____________________________________________________^ help: consider replacing this with: `vec![0; manifest.config().size() as usize]` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization # = note: `#[warn(clippy::slow_vector_initialization)]` on by default Error: CLIPPY_WARNING: [#def9] crates/lib/src/utils.rs:203:14: warning: this `repeat().take()` can be written more concisely # | # 203 | let up = std::iter::repeat(Component::ParentDir).take(from.len() - common); # | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `repeat_n()` instead: `std::iter::repeat_n(Component::ParentDir, from.len() - common)` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_repeat_n # = note: `#[warn(clippy::manual_repeat_n)]` on by default Error: CLIPPY_WARNING: [#def10] crates/lib/src/utils.rs:209:5: warning: unneeded `return` statement # | # 209 | return Ok(final_path); # | ^^^^^^^^^^^^^^^^^^^^^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return # help: remove `return` # | # 209 - return Ok(final_path); # 209 + Ok(final_path) # |
| analyzer-version-clippy | 1.89.0 |
| analyzer-version-cppcheck | 2.18.0 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 15.2.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.89.0 |
| diffbase-analyzer-version-cppcheck | 2.18.0 |
| diffbase-analyzer-version-gcc | 15.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 15.2.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-185.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.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | bootc-202508081947.g8ed1134e9b-1 |
| diffbase-store-results-to | /tmp/tmposrn8z_j/bootc-202508081947.g8ed1134e9b-1.tar.xz |
| diffbase-time-created | 2025-08-12 10:58:48 |
| diffbase-time-finished | 2025-08-12 11:06:15 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,cppcheck,clippy,gcc' '-o' '/tmp/tmposrn8z_j/bootc-202508081947.g8ed1134e9b-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmposrn8z_j/bootc-202508081947.g8ed1134e9b-1.src.rpm' |
| diffbase-tool-version | csmock-3.8.2.20250811.215846.gf3b3dbf-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-185.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | bootc-202508121029.g7a6439cad9-1 |
| store-results-to | /tmp/tmpk43pp3pv/bootc-202508121029.g7a6439cad9-1.tar.xz |
| time-created | 2025-08-12 11:06:43 |
| time-finished | 2025-08-12 11:14:07 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,cppcheck,clippy,gcc' '-o' '/tmp/tmpk43pp3pv/bootc-202508121029.g7a6439cad9-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpk43pp3pv/bootc-202508121029.g7a6439cad9-1.src.rpm' |
| tool-version | csmock-3.8.2.20250811.215846.gf3b3dbf-1.el9 |