remove more redundant clones manually

This commit is contained in:
Matthias Krüger 2024-01-07 00:26:49 +01:00
parent 476e10e961
commit b22bd36f6e
4 changed files with 3 additions and 5 deletions

View file

@ -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]);
}
}