Skip to content

Commit

Permalink
Pass Ident by reference in ast Visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcabrajac committed Oct 24, 2024
1 parent 54f9bc4 commit 5d681cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_utils/src/ast_utils/ident_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl From<&Attribute> for IdentIter {
struct IdentCollector(Vec<Ident>);

impl Visitor<'_> for IdentCollector {
fn visit_ident(&mut self, ident: Ident) {
self.0.push(ident);
fn visit_ident(&mut self, ident: &Ident) {
self.0.push(*ident);
}
}

0 comments on commit 5d681cf

Please sign in to comment.