Task #105879 - added.err
back to task #105879download
Error: CLIPPY_WARNING: crates/ostree-ext/src/container/store.rs:1266:30: warning: this `map_or` can be simplified # | # 1266 | should_relabel = sepolicy.name().map_or(false, |s| !s.is_empty()); # | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#unnecessary_map_or # = note: `#[warn(clippy::unnecessary_map_or)]` on by default # help: use is_some_and instead # | # 1266 - should_relabel = sepolicy.name().map_or(false, |s| !s.is_empty()); # 1266 + should_relabel = sepolicy.name().is_some_and(|s| !s.is_empty()); # |