Task #100460 - added.err

back to task #100460
download
Error: CLIPPY_WARNING:
crates/lib/src/bootc_composefs/state.rs:234:1: warning: this function has too many arguments (8/7)
#      |
#  234 | / pub(crate) async fn write_composefs_state(
#  235 | |     root_path: &Utf8PathBuf,
#  236 | |     deployment_id: &Sha512HashValue,
#  237 | |     target_imgref: &ImageReference,
#  ...   |
#  242 | |     allow_missing_fsverity: bool,
#  243 | | ) -> Result<()> {
#      | |_______________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#too_many_arguments

Error: CLIPPY_WARNING:
crates/lib/src/install.rs:1680:5: warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
#       |
#  1680 | /     match kernel {
#  1681 | |         Some(k) => match k.k_type {
#  1682 | |             crate::kernel::KernelType::Uki {
#  1683 | |                 allow_missing_fsverity,
#  ...    |
#  1700 | |         None => {}
#  1701 | |     }
#       | |_____^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#single_match
#       = note: `#[warn(clippy::single_match)]` on by default
#  help: try
#       |
#  1680 ~     if let Some(k) = kernel { match k.k_type {
#  1681 +         crate::kernel::KernelType::Uki {
#  1682 +             allow_missing_fsverity,
#  1683 +             ..
#  1684 +         } => {
#  1685 +             if !allow_missing_fsverity {
#  1686 +                 anyhow::ensure!(
#  1687 +                     root_filesystem.supports_fsverity(),
#  1688 +                     "Specified filesystem {root_filesystem} does not support fs-verity"
#  1689 +                 );
#  1690 +             }
#  1691 + 
#  1692 +             composefs_options.allow_missing_verity = allow_missing_fsverity;
#  1693 +             is_uki = true;
#  1694 +         }
#  1695 + 
#  1696 +         crate::kernel::KernelType::Vmlinuz { .. } => {}
#  1697 +     } }
#       |