mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Make make:: builders slightly more convenient
This commit is contained in:
parent
e177c65e36
commit
4cea6bb6f1
2 changed files with 12 additions and 9 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue