Make make:: builders slightly more convenient

This commit is contained in:
Aleksey Kladov 2019-11-13 11:55:43 +03:00
parent e177c65e36
commit 4cea6bb6f1
2 changed files with 12 additions and 9 deletions

View file

@ -358,7 +358,7 @@ fn replace_children<N: AstNode>(
fn test_increase_indent() {
let arm_list = {
let arm = make::match_arm(iter::once(make::placeholder_pat().into()), make::expr_unit());
make::match_arm_list(vec![arm.clone(), arm].into_iter())
make::match_arm_list(vec![arm.clone(), arm])
};
assert_eq!(
arm_list.syntax().to_string(),