mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
remove more redundant clones manually
This commit is contained in:
parent
476e10e961
commit
b22bd36f6e
4 changed files with 3 additions and 5 deletions
|
@ -79,7 +79,7 @@ pub(crate) fn goto_definition(
|
|||
return Some(vec![x]);
|
||||
}
|
||||
|
||||
if let Some(x) = try_lookup_macro_def_in_macro_use(sema, token.clone()) {
|
||||
if let Some(x) = try_lookup_macro_def_in_macro_use(sema, token) {
|
||||
return Some(vec![x]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue