aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lints/empty_pattern.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-01-29 11:01:20 +0000
committerAkshay <[email protected]>2022-01-29 11:01:20 +0000
commitdf29effd59bb8971395419b79e8c0e51f373d4fb (patch)
tree1d1fd9c1fdbb68260a7de24c2a799541f3ad1e24 /lib/src/lints/empty_pattern.rs
parent8e4eeb979ebaa8f0f461e66d986a75c3a80220b6 (diff)
bump rnix to latest master, support nix 2.5 syntax
Diffstat (limited to 'lib/src/lints/empty_pattern.rs')
-rw-r--r--lib/src/lints/empty_pattern.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/src/lints/empty_pattern.rs b/lib/src/lints/empty_pattern.rs
index b399ba2..14c3b5e 100644
--- a/lib/src/lints/empty_pattern.rs
+++ b/lib/src/lints/empty_pattern.rs
@@ -49,6 +49,7 @@ impl Rule for EmptyPattern {
49 if let Some(body) = lambda_expr.body(); 49 if let Some(body) = lambda_expr.body();
50 50
51 if let Some(pattern) = Pattern::cast(arg.clone()); 51 if let Some(pattern) = Pattern::cast(arg.clone());
52
52 // no patterns within `{ }` 53 // no patterns within `{ }`
53 if pattern.entries().count() == 0; 54 if pattern.entries().count() == 0;
54 // pattern is not bound 55 // pattern is not bound