mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
ra_mbe: Remove explicit type annotation
This commit is contained in:
parent
28bdb65407
commit
5f15e3aeb0
1 changed files with 1 additions and 1 deletions
|
@ -1456,7 +1456,7 @@ impl MacroFixture {
|
||||||
|
|
||||||
pub(crate) fn parse_macro(macro_definition: &str) -> MacroFixture {
|
pub(crate) fn parse_macro(macro_definition: &str) -> MacroFixture {
|
||||||
let source_file = ast::SourceFile::parse(macro_definition).ok().unwrap();
|
let source_file = ast::SourceFile::parse(macro_definition).ok().unwrap();
|
||||||
let macro_definition: ast::MacroCall =
|
let macro_definition =
|
||||||
source_file.syntax().descendants().find_map(ast::MacroCall::cast).unwrap();
|
source_file.syntax().descendants().find_map(ast::MacroCall::cast).unwrap();
|
||||||
|
|
||||||
let (definition_tt, _) = ast_to_token_tree(¯o_definition.token_tree().unwrap()).unwrap();
|
let (definition_tt, _) = ast_to_token_tree(¯o_definition.token_tree().unwrap()).unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue