forked from extern/nushell
Apply nightly clippy fixes (#9381)
# Description New lints coming from `cargo +nightly clippy` Manually checked for problems. # User-Facing Changes None # Tests + Formatting (-)
This commit is contained in:
committed by
GitHub
parent
74ba00a222
commit
a5dd93d154
@ -176,7 +176,6 @@ fn get_arguments(engine_state: &EngineState, stack: &mut Stack, call: Call) -> V
|
||||
span: name.span,
|
||||
};
|
||||
arg_value.push(rec);
|
||||
} else {
|
||||
};
|
||||
|
||||
if let Some(expression) = opt_expr {
|
||||
@ -207,7 +206,6 @@ fn get_arguments(engine_state: &EngineState, stack: &mut Stack, call: Call) -> V
|
||||
span: expression.span,
|
||||
};
|
||||
arg_value.push(rec);
|
||||
} else {
|
||||
};
|
||||
}
|
||||
Argument::Positional(inner_expr) => {
|
||||
|
@ -117,7 +117,7 @@ fn split_words(
|
||||
// let ignore_punctuation = call.has_flag("ignore-punctuation");
|
||||
let word_length: Option<usize> = call.get_flag(engine_state, stack, "min-word-length")?;
|
||||
|
||||
if matches!(word_length, None) {
|
||||
if word_length.is_none() {
|
||||
if call.has_flag("grapheme-clusters") {
|
||||
return Err(ShellError::IncompatibleParametersSingle {
|
||||
msg: "--grapheme-clusters (-g) requires --min-word-length (-l)".to_string(),
|
||||
|
Reference in New Issue
Block a user