aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-22 11:14:46 +0000
committerGitHub <[email protected]>2020-02-22 11:14:46 +0000
commit5f15e3aeb00a8f7379916106fc203f230c5bb7e8 (patch)
treed461a85607f0a10cfed39dc42fb9c4e64d677ea9 /crates/ra_mbe
parent28bdb654074f63d6ce1a2a3fe328b1a2a1867954 (diff)
ra_mbe: Remove explicit type annotation
Diffstat (limited to 'crates/ra_mbe')
-rw-r--r--crates/ra_mbe/src/tests.rs2
1 files changed, 1 insertions, 1 deletions
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 {
1456 1456
1457pub(crate) fn parse_macro(macro_definition: &str) -> MacroFixture { 1457pub(crate) fn parse_macro(macro_definition: &str) -> MacroFixture {
1458 let source_file = ast::SourceFile::parse(macro_definition).ok().unwrap(); 1458 let source_file = ast::SourceFile::parse(macro_definition).ok().unwrap();
1459 let macro_definition: ast::MacroCall = 1459 let macro_definition =
1460 source_file.syntax().descendants().find_map(ast::MacroCall::cast).unwrap(); 1460 source_file.syntax().descendants().find_map(ast::MacroCall::cast).unwrap();
1461 1461
1462 let (definition_tt, _) = ast_to_token_tree(&macro_definition.token_tree().unwrap()).unwrap(); 1462 let (definition_tt, _) = ast_to_token_tree(&macro_definition.token_tree().unwrap()).unwrap();