fix clippy lints

This commit is contained in:
りき萌 2024-10-23 20:12:02 +02:00
parent 7c40505d7d
commit e19e47e6ad
6 changed files with 7 additions and 7 deletions

View file

@ -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> {