mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
itroduce trait for ast tokens
This commit is contained in:
parent
3f4be81912
commit
fa6e0b0d38
12 changed files with 34 additions and 59 deletions
|
@ -177,7 +177,7 @@ pub fn macro_symbols(
|
|||
if let Some(name) = trait_def.name() {
|
||||
let dst_range = name.syntax().range();
|
||||
if let Some(src_range) = exp.map_range_back(dst_range) {
|
||||
res.push((name.text(), src_range + off))
|
||||
res.push((name.text().clone(), src_range + off))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue