ra_mbe: Remove explicit type annotation

This commit is contained in:
Veetaha 2020-02-22 13:14:46 +02:00 committed by GitHub
parent 28bdb65407
commit 5f15e3aeb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(&macro_definition.token_tree().unwrap()).unwrap();