Error: CLIPPY_WARNING: [#def1] crates/lib/src/bootc_composefs/boot.rs:169:5: warning: unneeded `return` statement # | # 169 | return Ok(parent); # | ^^^^^^^^^^^^^^^^^ # | # = 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` # | # 169 - return Ok(parent); # 169 + Ok(parent) # | Error: CLIPPY_WARNING: [#def2] crates/lib/src/bootc_composefs/boot.rs:370:39: warning: useless conversion to the same type: `std::string::String` # | # 370 | 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 # = note: `#[warn(clippy::useless_conversion)]` on by default Error: CLIPPY_WARNING: [#def3] crates/lib/src/bootc_composefs/boot.rs:561:1: warning: this function has too many arguments (8/7) # | # 561 | / fn write_pe_to_esp( # 562 | | repo: &crate::store::ComposefsRepository, # 563 | | file: &RegularFile<Sha512HashValue>, # 564 | | file_path: &Utf8Path, # ... | # 569 | | bootloader: &Bootloader, # 570 | | ) -> Result<Option<String>> { # | |___________________________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments # = note: `#[warn(clippy::too_many_arguments)]` on by default Error: CLIPPY_WARNING: [#def4] crates/lib/src/bootc_composefs/boot.rs:643:29: warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator # | # 643 | PEType::UkiAddon => file_path # | _____________________________^ # 644 | | .components() # 645 | | .last() # | |______________-----^ # | | # | help: try: `next_back()` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last # = note: `#[warn(clippy::double_ended_iterator_last)]` on by default Error: CLIPPY_WARNING: [#def5] crates/lib/src/bootc_composefs/boot.rs:833:20: warning: length comparison to zero # | # 833 | 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: [#def6] crates/lib/src/bootc_composefs/boot.rs:886:38: warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator # | # 886 | let addon_name = entry # | ______________________________________^ # 887 | | .file_path # 888 | | .components() # 889 | | .last() # | |__________________________-----^ # | | # | help: try: `next_back()` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last Error: CLIPPY_WARNING: [#def7] crates/lib/src/bootc_composefs/boot.rs:975:23: warning: using `.iter().next()` on an array # | # 975 | let Some(entry) = entries.iter().next() else { # | ^^^^^^^^^^^^^^^^^^^^^ help: try calling: `entries.first()` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice # = note: `#[warn(clippy::iter_next_slice)]` on by default Error: CLIPPY_WARNING: [#def8] crates/lib/src/bootc_composefs/repo.rs:74:16: warning: writing `&String` instead of `&str` involves a new object where a slice will do # | # 74 | transport: &String, # | ^^^^^^^ help: change this to: `&str` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg # = note: `#[warn(clippy::ptr_arg)]` on by default Error: CLIPPY_WARNING: [#def9] crates/lib/src/bootc_composefs/repo.rs:75:12: warning: writing `&String` instead of `&str` involves a new object where a slice will do # | # 75 | image: &String, # | ^^^^^^^ help: change this to: `&str` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg Error: CLIPPY_WARNING: [#def10] crates/lib/src/bootc_composefs/rollback.rs:37:18: warning: useless use of `format!` # | # 37 | .context(format!("Reopening entries dir as owned fd"))?; # | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Reopening entries dir as owned fd".to_string()` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format # = note: `#[warn(clippy::useless_format)]` on by default Error: CLIPPY_WARNING: [#def11] crates/lib/src/bootc_composefs/rollback.rs:39:32: warning: useless use of `format!` # | # 39 | fsync(entries_dir).context(format!("fsync entries dir"))?; # | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"fsync entries dir".to_string()` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format Error: CLIPPY_WARNING: [#def12] crates/lib/src/bootc_composefs/rollback.rs:63:26: warning: useless use of `format!` # | # 63 | .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: [#def13] crates/lib/src/bootc_composefs/status.rs:145:19: warning: slow zero-filling initialization # | # 145 | let mut buf = Vec::with_capacity(manifest.config().size() as usize); # | ___________________^ # 146 | | 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: [#def14] crates/lib/src/bootc_composefs/switch.rs:42:23: warning: using `.iter().next()` on an array # | # 42 | let Some(entry) = entries.iter().next() else { # | ^^^^^^^^^^^^^^^^^^^^^ help: try calling: `entries.first()` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice Error: CLIPPY_WARNING: [#def15] crates/lib/src/bootc_composefs/update.rs:32:23: warning: using `.iter().next()` on an array # | # 32 | let Some(entry) = entries.iter().next() else { # | ^^^^^^^^^^^^^^^^^^^^^ help: try calling: `entries.first()` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_next_slice Error: CLIPPY_WARNING: [#def16] crates/lib/src/install.rs:580:16: warning: inequality checks against false are unnecessary # | # 580 | 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: [#def17] crates/lib/src/install.rs:1394:16: warning: this `else { if .. }` block can be collapsed # | # 1394 | } else { # | ________________^ # 1395 | | if crate::bootloader::supports_bootupd(None)? { # 1396 | | crate::spec::Bootloader::Grub # 1397 | | } else { # ... | # 1400 | | } # | |_________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if # = note: `#[warn(clippy::collapsible_else_if)]` on by default # help: collapse nested if block # | # 1394 ~ } else if crate::bootloader::supports_bootupd(None)? { # 1395 + crate::spec::Bootloader::Grub # 1396 + } else { # 1397 + crate::spec::Bootloader::Systemd # 1398 + } # | Error: CLIPPY_WARNING: [#def18] crates/lib/src/lints.rs:764:43: warning: useless conversion to the same type: `cap_std_ext::cap_std::fs::ReadDir` # | # 764 | let entries: Result<BTreeSet<_>, _> = d # | ___________________________________________^ # 765 | | .entries()? # 766 | | .into_iter() # | |____________________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion # help: consider removing `.into_iter()` # | # 764 ~ let entries: Result<BTreeSet<_>, _> = d # 765 + .entries()? # | Error: CLIPPY_WARNING: [#def19] crates/lib/src/podstorage.rs:132:35: warning: the following explicit lifetimes could be elided: 'c # | # 132 | pub fn set_additional_image_store<'c>( # | ^^ # 133 | cmd: &'c mut Command, # | ^^ # 134 | ais: impl AsRef<Utf8Path>, # 135 | ) -> &'c mut Command { # | ^^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes # = note: `#[warn(clippy::needless_lifetimes)]` on by default # help: elide the lifetimes # | # 132 ~ pub fn set_additional_image_store( # 133 ~ cmd: &mut Command, # 134 | ais: impl AsRef<Utf8Path>, # 135 ~ ) -> &mut Command { # | Error: CLIPPY_WARNING: [#def20] crates/lib/src/utils.rs:251:13: warning: unneeded `return` statement # | # 251 | return Ok(loader); # | ^^^^^^^^^^^^^^^^^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return # help: remove `return` # | # 251 - return Ok(loader); # 251 + Ok(loader) # | Error: CLIPPY_WARNING: [#def21] crates/lib/src/utils.rs:255:13: warning: unneeded `return` statement # | # 255 | return Err(EfiError::MissingVar); # | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return # help: remove `return` # | # 255 - return Err(EfiError::MissingVar); # 255 + Err(EfiError::MissingVar) # | Error: CLIPPY_WARNING: [#def22] crates/lib/src/utils.rs:276:14: warning: this `repeat().take()` can be written more concisely # | # 276 | 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: [#def23] crates/lib/src/utils.rs:282:5: warning: unneeded `return` statement # | # 282 | return Ok(final_path); # | ^^^^^^^^^^^^^^^^^^^^^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return # help: remove `return` # | # 282 - return Ok(final_path); # 282 + Ok(final_path) # | Error: CLIPPY_WARNING: [#def24] crates/tests-integration/src/composefs_bcvk.rs:78:35: warning: useless conversion to the same type: `std::vec::Vec<libtest_mimic::Trial>` # | # 78 | libtest_mimic::run(&testargs, tests.into()).exit() # | ^^^^^^^^^^^^ help: consider removing `.into()`: `tests` # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion # = note: `#[warn(clippy::useless_conversion)]` on by default
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| 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.90.0 |
| diffbase-analyzer-version-cppcheck | 2.18.3 |
| 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-176.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-202510151234.g7e526508a9-1 |
| diffbase-store-results-to | /tmp/tmpne163x8z/bootc-202510151234.g7e526508a9-1.tar.xz |
| diffbase-time-created | 2025-10-16 19:28:53 |
| diffbase-time-finished | 2025-10-16 19:41:08 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpne163x8z/bootc-202510151234.g7e526508a9-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpne163x8z/bootc-202510151234.g7e526508a9-1.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251013.170946.gb8b9f75-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-176.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-202510161859.gf10f9300cc-1 |
| store-results-to | /tmp/tmpqv7pmyrz/bootc-202510161859.gf10f9300cc-1.tar.xz |
| time-created | 2025-10-16 19:41:35 |
| time-finished | 2025-10-16 19:53:42 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpqv7pmyrz/bootc-202510161859.gf10f9300cc-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpqv7pmyrz/bootc-202510161859.gf10f9300cc-1.src.rpm' |
| tool-version | csmock-3.8.3.20251013.170946.gb8b9f75-1.el9 |