Skip to content

Commit

Permalink
Don't emit unused rule warning if rule name begins with underscore (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbillig authored Jun 7, 2024
1 parent 036aa69 commit 1ecd0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language-server/src/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl Analysis {
false
}
})
.filter(|(name, _)| !BUILTINS.contains(&name.as_str()))
.filter(|(name, _)| !BUILTINS.contains(&name.as_str()) && !name.starts_with('_'))
.map(|(name, ra)| {
(
name,
Expand Down

0 comments on commit 1ecd0c7

Please sign in to comment.