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:
Stefan Holderbach
2023-06-08 18:49:58 +02:00
committed by GitHub
parent 74ba00a222
commit a5dd93d154
8 changed files with 21 additions and 23 deletions

View File

@ -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(),