mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 03:27:44 +00:00
remove a couple of clones
This commit is contained in:
parent
6c9cf51c55
commit
573c47c9ba
32 changed files with 71 additions and 90 deletions
|
|
@ -387,11 +387,7 @@ fn expand(
|
|||
|
||||
match (
|
||||
sema.expand_macro_call(&actual_macro_call),
|
||||
sema.speculative_expand_macro_call(
|
||||
&actual_macro_call,
|
||||
&speculative_args,
|
||||
fake_ident_token.clone(),
|
||||
),
|
||||
sema.speculative_expand_macro_call(&actual_macro_call, &speculative_args, fake_ident_token),
|
||||
) {
|
||||
// successful expansions
|
||||
(Some(actual_expansion), Some((fake_expansion, fake_mapped_tokens))) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue