Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <[email protected]>
  • Loading branch information
lucasew committed Jan 10, 2025
1 parent df6e398 commit e716f34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ fn find_invalid_withs(syntax: &rnix::SyntaxNode) -> Option<rnix::SyntaxNode> {
if child == *node {
return None;
}
let node_if_invalid = match child.kind() {
match child.kind() {
SyntaxKind::NODE_WITH => Some(node),
SyntaxKind::NODE_LET_IN => Some(node),
SyntaxKind::NODE_ATTR_SET => Some(node),
_ => None,
};
node_if_invalid
}
})
.any(|node| node.is_some())
})
Expand Down

0 comments on commit e716f34

Please sign in to comment.