mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 05:10:18 +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
@@ -1587,7 +1587,7 @@ pub fn parse_brace_expr(
|
||||
.get(1)
|
||||
.map(|token| working_set.get_span_contents(token.span));
|
||||
|
||||
if matches!(second_token, None) {
|
||||
if second_token.is_none() {
|
||||
// If we're empty, that means an empty record or closure
|
||||
if matches!(shape, SyntaxShape::Closure(_)) {
|
||||
parse_closure_expression(working_set, shape, span)
|
||||
|
Reference in New Issue
Block a user