Task #70837 - added.err
back to task #70837download
Error: CLIPPY_WARNING:
crates/xtask/src/man.rs:288:13: warning: returning the result of a `let` binding from a block
# |
# 287 | let path = find_command_path_for_filename(cli_structure, cmd_part);
# | ------------------------------------------------------------------- unnecessary `let` binding
# 288 | path
# | ^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
# = note: `#[warn(clippy::let_and_return)]` on by default
# help: return the expression directly
# |
# 287 ~
# 288 ~ find_command_path_for_filename(cli_structure, cmd_part)
# |
Error: CLIPPY_WARNING:
crates/xtask/src/man.rs:568:5: warning: empty string literal in `println!`
# |
# 568 | println!("");
# | ^^^^^^^^^--^
# | |
# | help: remove the empty string
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string
# = note: `#[warn(clippy::println_empty_string)]` on by default
Error: CLIPPY_WARNING:
crates/xtask/src/man.rs:583:12: warning: this `map_or` can be simplified
# |
# 583 | if path
# | ____________^
# 584 | | .extension()
# 585 | | .and_then(|s| s.to_str())
# 586 | | .map_or(false, |e| e.chars().all(|c| c.is_numeric()))
# | |_________________________________________________________________^
# |
# = 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
# |
# 586 - .map_or(false, |e| e.chars().all(|c| c.is_numeric()))
# 586 + .is_some_and(|e| e.chars().all(|c| c.is_numeric()))
# |