Task #77529 - added.err

back to task #77529
download
Error: CLIPPY_WARNING:
crates/lib/src/bootc_composefs/delete.rs:329:27: warning: this `map_or` can be simplified
#      |
#  329 |       let deleting_staged = host
#      |  ___________________________^
#  330 | |         .status
#  331 | |         .staged
#  332 | |         .as_ref()
#  333 | |         .and_then(|s| s.composefs.as_ref())
#  334 | |         .map_or(false, |cfs| cfs.verity == deployment_id);
#      | |_________________________________________________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
#      = note: `#[warn(clippy::unnecessary_map_or)]` on by default
#  help: use is_some_and instead
#      |
#  334 -         .map_or(false, |cfs| cfs.verity == deployment_id);
#  334 +         .is_some_and(|cfs| cfs.verity == deployment_id);
#      |

Error: CLIPPY_WARNING:
crates/lib/src/bootc_composefs/delete.rs:346:8: warning: taken reference of right operand
#      |
#  346 |     if deployment_id == &booted.verity {
#      |        ^^^^^^^^^^^^^^^^^--------------
#      |                         |
#      |                         help: use the right value directly: `booted.verity`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
#      = note: `#[warn(clippy::op_ref)]` on by default

Error: CLIPPY_WARNING:
crates/lib/src/parsers/bls_config.rs:176:46: warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator
#      |
#  176 |               BLSConfigType::EFI { efi } => Ok(efi
#      |  ______________________________________________^
#  177 | |                 .components()
#  178 | |                 .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:
crates/lib/src/parsers/grub_menuconfig.rs:109:12: warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator
#      |
#  109 |           Ok(to_path
#      |  ____________^
#  110 | |             .components()
#  111 | |             .last()
#      | |______________-----^
#      |                |
#      |                help: try: `next_back()`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last