]> git.lizzy.rs Git - rust.git/blobdiff - crates/mbe/src/benchmark.rs
Make `ast_to_token_tree` infallible
[rust.git] / crates / mbe / src / benchmark.rs
index ba814a2e1adac951447307e4b3b7a693c8ebe81c..38707ffa5bfa8155dafdba396fb087d5d5054076 100644 (file)
@@ -65,7 +65,7 @@ fn macro_rules_fixtures_tt() -> FxHashMap<String, tt::Subtree> {
         .filter_map(ast::MacroRules::cast)
         .map(|rule| {
             let id = rule.name().unwrap().to_string();
-            let (def_tt, _) = ast_to_token_tree(&rule.token_tree().unwrap()).unwrap();
+            let (def_tt, _) = ast_to_token_tree(&rule.token_tree().unwrap());
             (id, def_tt)
         })
         .collect()