mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
op_ref
This commit is contained in:
parent
0df30499d0
commit
4858a3784d
4 changed files with 3 additions and 6 deletions
|
@ -358,7 +358,7 @@ fn expander_to_proc_macro(
|
|||
proc_macro_api::ProcMacroKind::Attr => ProcMacroKind::Attr,
|
||||
};
|
||||
let expander: sync::Arc<dyn ProcMacroExpander> =
|
||||
if dummy_replace.iter().any(|replace| &**replace == name) {
|
||||
if dummy_replace.iter().any(|replace| **replace == name) {
|
||||
match kind {
|
||||
ProcMacroKind::Attr => sync::Arc::new(IdentityExpander),
|
||||
_ => sync::Arc::new(EmptyExpander),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue