fix clippy lints
This commit is contained in:
parent
7c40505d7d
commit
e19e47e6ad
6 changed files with 7 additions and 7 deletions
|
@ -25,7 +25,7 @@ pub struct Walk<'a> {
|
|||
index: usize,
|
||||
}
|
||||
|
||||
impl<'a> Walk<'a> {
|
||||
impl Walk<'_> {
|
||||
/// Walk to the first non-Nil, non-Error, non-Token node.
|
||||
pub fn node(&mut self) -> Option<NodeId> {
|
||||
while let Some(id) = self.next() {
|
||||
|
@ -57,7 +57,7 @@ impl<'a> Walk<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> Iterator for Walk<'a> {
|
||||
impl Iterator for Walk<'_> {
|
||||
type Item = NodeId;
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue