Use anonymous lifetime where possible

This commit is contained in:
Ryo Yoshida 2023-06-29 23:27:28 +09:00
parent 70a01fead5
commit 4e793e7859
No known key found for this signature in database
GPG key ID: E25698A930586171
30 changed files with 60 additions and 60 deletions

View file

@ -195,7 +195,7 @@ fn postorder(item: &SyntaxNode) -> impl Iterator<Item = SyntaxNode> {
})
}
impl<'a> Ctx<'a> {
impl Ctx<'_> {
fn apply(&self, item: &SyntaxNode) {
// `transform_path` may update a node's parent and that would break the
// tree traversal. Thus all paths in the tree are collected into a vec