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.
2 parents eb17e90 + b8eb63f commit 5d948caCopy full SHA for 5d948ca
crates/hir_expand/src/hygiene.rs
@@ -53,7 +53,7 @@ impl Hygiene {
53
pub fn local_inner_macros(&self, db: &dyn AstDatabase, path: ast::Path) -> Option<CrateId> {
54
let mut token = path.syntax().first_token()?.text_range();
55
let frames = self.frames.as_ref()?;
56
- let mut current = frames.0.clone();
+ let mut current = &frames.0;
57
58
loop {
59
let (mapped, origin) = current.expansion.as_ref()?.map_ident_up(db, token)?;
@@ -64,7 +64,7 @@ impl Hygiene {
64
None
65
};
66
}
67
- current = current.call_site.as_ref()?.clone();
+ current = current.call_site.as_ref()?;
68
token = mapped.value;
69
70
0 commit comments