We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3be85c5 commit 6191fcaCopy full SHA for 6191fca
src/node.rs
@@ -83,11 +83,9 @@ impl<'a> Node<'a> {
83
#[inline(always)]
84
pub(crate) fn has_sibling(&self, id: u16) -> bool {
85
self.0.parent().is_some_and(|parent| {
86
- let has_child = self
87
- .0
+ self.0
88
.children(&mut parent.walk())
89
- .any(|child| child.kind_id() == id);
90
- has_child
+ .any(|child| child.kind_id() == id)
91
})
92
}
93
@@ -101,11 +99,9 @@ impl<'a> Node<'a> {
101
99
102
100
103
pub(crate) fn is_child(&self, id: u16) -> bool {
104
- let is_child = self
105
106
.children(&mut self.0.walk())
107
108
- is_child
109
110
111
pub(crate) fn child_count(&self) -> usize {
0 commit comments