diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-13 08:59:48 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-13 08:59:48 +0000 |
commit | d523366299c8d4813e9845c9402b8dd7b779856a (patch) | |
tree | 1e42b170b230271a5a906f0e9c19cbec27429929 /crates/ra_syntax/src/ast/edit.rs | |
parent | 6ca0d79cff8746ea4f0c8fb8645d14b8b81bc7fc (diff) | |
parent | 4cea6bb6f11e28a2d1d2e023d46caa82b0f38796 (diff) |
Merge #2226
2226: Use strongly-typed ast building for early-return assist r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/ast/edit.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/edit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/edit.rs b/crates/ra_syntax/src/ast/edit.rs index 47bdbb81a..6f005a2d8 100644 --- a/crates/ra_syntax/src/ast/edit.rs +++ b/crates/ra_syntax/src/ast/edit.rs | |||
@@ -358,7 +358,7 @@ fn replace_children<N: AstNode>( | |||
358 | fn test_increase_indent() { | 358 | fn test_increase_indent() { |
359 | let arm_list = { | 359 | let arm_list = { |
360 | let arm = make::match_arm(iter::once(make::placeholder_pat().into()), make::expr_unit()); | 360 | let arm = make::match_arm(iter::once(make::placeholder_pat().into()), make::expr_unit()); |
361 | make::match_arm_list(vec![arm.clone(), arm].into_iter()) | 361 | make::match_arm_list(vec![arm.clone(), arm]) |
362 | }; | 362 | }; |
363 | assert_eq!( | 363 | assert_eq!( |
364 | arm_list.syntax().to_string(), | 364 | arm_list.syntax().to_string(), |