diff options
author | Veetaha <[email protected]> | 2020-02-22 11:14:46 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-22 11:14:46 +0000 |
commit | 5f15e3aeb00a8f7379916106fc203f230c5bb7e8 (patch) | |
tree | d461a85607f0a10cfed39dc42fb9c4e64d677ea9 | |
parent | 28bdb654074f63d6ce1a2a3fe328b1a2a1867954 (diff) |
ra_mbe: Remove explicit type annotation
-rw-r--r-- | crates/ra_mbe/src/tests.rs | 2 |
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 | ||
1457 | pub(crate) fn parse_macro(macro_definition: &str) -> MacroFixture { | 1457 | pub(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(¯o_definition.token_tree().unwrap()).unwrap(); | 1462 | let (definition_tt, _) = ast_to_token_tree(¯o_definition.token_tree().unwrap()).unwrap(); |