Task #76906 - added.err
back to task #76906download
Error: CLIPPY_WARNING:
crates/ostree-ext/src/sysroot.rs:107:5: warning: this `let...else` may be rewritten with the `?` operator
# |
# 107 | / let Some(statename) = name.strip_prefix(AUTO_STATEROOT_PREFIX) else {
# 108 | | return None;
# 109 | | };
# | |______^ help: replace it with: `let statename = name.strip_prefix(AUTO_STATEROOT_PREFIX)?;`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
# = note: `#[warn(clippy::question_mark)]` on by default
Error: CLIPPY_WARNING:
crates/ostree-ext/src/sysroot.rs:110:5: warning: this `let...else` may be rewritten with the `?` operator
# |
# 110 | / let Some((year, serial)) = statename.split_once("-") else {
# 111 | | return None;
# 112 | | };
# | |______^ help: replace it with: `let (year, serial) = statename.split_once("-")?;`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark