Task #53235 - added.err

back to task #53235
download
Error: CLIPPY_WARNING:
lib/src/spec.rs:172:29: warning: this `map_or` can be simplified
#      |
#  172 |             Slot::Staged => self.staged.as_ref().map_or(false, |s| s.pinned),
#      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
#  help: use is_some_and instead
#      |
#  172 -             Slot::Staged => self.staged.as_ref().map_or(false, |s| s.pinned),
#  172 +             Slot::Staged => self.staged.as_ref().is_some_and(|s| s.pinned),
#      |

Error: CLIPPY_WARNING:
lib/src/spec.rs:173:29: warning: this `map_or` can be simplified
#      |
#  173 |             Slot::Booted => self.booted.as_ref().map_or(false, |s| s.pinned),
#      |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
#  help: use is_some_and instead
#      |
#  173 -             Slot::Booted => self.booted.as_ref().map_or(false, |s| s.pinned),
#  173 +             Slot::Booted => self.booted.as_ref().is_some_and(|s| s.pinned),
#      |

Error: CLIPPY_WARNING:
lib/src/spec.rs:174:31: warning: this `map_or` can be simplified
#      |
#  174 |             Slot::Rollback => self.rollback.as_ref().map_or(false, |s| s.pinned),
#      |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
#  help: use is_some_and instead
#      |
#  174 -             Slot::Rollback => self.rollback.as_ref().map_or(false, |s| s.pinned),
#  174 +             Slot::Rollback => self.rollback.as_ref().is_some_and(|s| s.pinned),
#      |

Error: CLIPPY_WARNING:
lib/src/status.rs:259:10: warning: usage of `bool::then` in `filter_map`
#      |
#  259 |           .filter_map(|d| {
#      |  __________^
#  260 | |             d.is_pinned()
#  261 | |                 .then(|| boot_entry_from_deployment(sysroot, d).ok())
#  262 | |         })
#      | |__________^ help: use `filter` then `map` instead: `filter(|&d| d.is_pinned()).map(|d| boot_entry_from_deployment(sysroot, d).ok())`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#filter_map_bool_then
#      = note: `#[warn(clippy::filter_map_bool_then)]` on by default