From 5f15e3aeb00a8f7379916106fc203f230c5bb7e8 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Sat, 22 Feb 2020 13:14:46 +0200 Subject: ra_mbe: Remove explicit type annotation --- crates/ra_mbe/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ra_mbe/src/tests.rs b/crates/ra_mbe/src/tests.rs index ef34dde5c..cb228702f 100644 --- a/crates/ra_mbe/src/tests.rs +++ b/crates/ra_mbe/src/tests.rs @@ -1456,7 +1456,7 @@ impl MacroFixture { pub(crate) fn parse_macro(macro_definition: &str) -> MacroFixture { 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(); let (definition_tt, _) = ast_to_token_tree(¯o_definition.token_tree().unwrap()).unwrap(); -- cgit v1.2.3