We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f9bc4 commit 5d681cfCopy full SHA for 5d681cf
clippy_utils/src/ast_utils/ident_iter.rs
@@ -39,7 +39,7 @@ impl From<&Attribute> for IdentIter {
39
struct IdentCollector(Vec<Ident>);
40
41
impl Visitor<'_> for IdentCollector {
42
- fn visit_ident(&mut self, ident: Ident) {
43
- self.0.push(ident);
+ fn visit_ident(&mut self, ident: &Ident) {
+ self.0.push(*ident);
44
}
45
0 commit comments