mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
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
@ -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