diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-06 23:00:07 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-06 23:00:07 +0000 |
commit | 5aba5a756a19a54d5c4edd51d8055db36182688b (patch) | |
tree | ae968f2cef858c6b001e126dd7e3684d013566b9 /crates/ra_assists/src/assists | |
parent | a4431e83025223d5aea0ae3d49a6356775cb5f75 (diff) | |
parent | 56e3fbe588597847b508969b7e3243725f5a792c (diff) |
Merge #3042
3042: A tiny bit more consistent API r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/assists')
-rw-r--r-- | crates/ra_assists/src/assists/early_return.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/assists/early_return.rs b/crates/ra_assists/src/assists/early_return.rs index 7d510b055..3169be2b9 100644 --- a/crates/ra_assists/src/assists/early_return.rs +++ b/crates/ra_assists/src/assists/early_return.rs | |||
@@ -101,7 +101,7 @@ pub(crate) fn convert_to_guarded_return(ctx: AssistCtx) -> Option<Assist> { | |||
101 | // If. | 101 | // If. |
102 | let early_expression = &(early_expression.syntax().to_string() + ";"); | 102 | let early_expression = &(early_expression.syntax().to_string() + ";"); |
103 | let new_expr = if_indent_level | 103 | let new_expr = if_indent_level |
104 | .increase_indent(make::if_expression(&cond_expr, early_expression)); | 104 | .increase_indent(make::if_expression(cond_expr, early_expression)); |
105 | replace(new_expr.syntax(), &then_block, &parent_block, &if_expr) | 105 | replace(new_expr.syntax(), &then_block, &parent_block, &if_expr) |
106 | } | 106 | } |
107 | Some((path, bound_ident)) => { | 107 | Some((path, bound_ident)) => { |