diff options
Diffstat (limited to 'crates')
-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(); |