Pass Ident by reference in ast Visitor
This commit is contained in:
parent
54f9bc4884
commit
5d681cfe78
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue