mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Simplify
This commit is contained in:
parent
b641a66078
commit
0c0142f61a
4 changed files with 16 additions and 22 deletions
|
@ -376,7 +376,7 @@ impl ExpansionInfo {
|
|||
db::TokenExpander::MacroRules { def_site_token_map, .. }
|
||||
| db::TokenExpander::MacroDef { def_site_token_map, .. },
|
||||
Some(tt),
|
||||
) => (def_site_token_map, tt.as_ref().map(|tt| tt.syntax().clone())),
|
||||
) => (def_site_token_map, tt.syntax().cloned()),
|
||||
_ => panic!("`Origin::Def` used with non-`macro_rules!` macro"),
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue