Skip to content

Commit f158f6e

Browse files
committed
replace matches with ==
1 parent 41a11b5 commit f158f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix-script-directives/src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl Expr {
3838
}
3939

4040
pub fn is_leaf(&self) -> bool {
41-
matches!(self.kind(), SyntaxKind::NODE_IDENT)
41+
self.kind() == SyntaxKind::NODE_IDENT
4242
}
4343
}
4444

0 commit comments

Comments
 (0)