diff options
author | Aleksey Kladov <[email protected]> | 2019-04-22 08:38:39 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-22 08:38:39 +0100 |
commit | b811922a530b7b22469b386a521946f1003911c7 (patch) | |
tree | f36351caa9129c14dded2ecb1d5c7505c3ba1ab0 /crates/ra_ide_api/src | |
parent | 5b2fd86d2523299c4a5ec58ad33c3474f52f85a2 (diff) |
fix postfix match indent
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_postfix.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_postfix.rs b/crates/ra_ide_api/src/completion/complete_postfix.rs index 4dfa5f176..278b1b797 100644 --- a/crates/ra_ide_api/src/completion/complete_postfix.rs +++ b/crates/ra_ide_api/src/completion/complete_postfix.rs | |||
@@ -40,7 +40,7 @@ pub(super) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) { | |||
40 | ctx, | 40 | ctx, |
41 | "match", | 41 | "match", |
42 | "match expr {}", | 42 | "match expr {}", |
43 | &format!("match {} {{\n${{1:_}} => {{$0\\}},\n}}", receiver_text), | 43 | &format!("match {} {{\n ${{1:_}} => {{$0\\}},\n}}", receiver_text), |
44 | ) | 44 | ) |
45 | .add_to(acc); | 45 | .add_to(acc); |
46 | postfix_snippet( | 46 | postfix_snippet( |
diff --git a/crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap b/crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap index 2b5435f0c..3bbc9e3c4 100644 --- a/crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap +++ b/crates/ra_ide_api/src/completion/snapshots/completion_item__postfix_completion_works_for_trivial_path_expression.snap | |||
@@ -1,6 +1,6 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-02-18T09:22:24.127119709Z" | 2 | created: "2019-04-22T07:37:13.981826301Z" |
3 | creator: insta@0.6.2 | 3 | creator: insta@0.7.4 |
4 | source: crates/ra_ide_api/src/completion/completion_item.rs | 4 | source: crates/ra_ide_api/src/completion/completion_item.rs |
5 | expression: kind_completions | 5 | expression: kind_completions |
6 | --- | 6 | --- |
@@ -23,7 +23,7 @@ expression: kind_completions | |||
23 | label: "match", | 23 | label: "match", |
24 | source_range: [76; 76), | 24 | source_range: [76; 76), |
25 | delete: [72; 76), | 25 | delete: [72; 76), |
26 | insert: "match bar {\n${1:_} => {$0\\},\n}", | 26 | insert: "match bar {\n ${1:_} => {$0\\},\n}", |
27 | detail: "match expr {}" | 27 | detail: "match expr {}" |
28 | }, | 28 | }, |
29 | CompletionItem { | 29 | CompletionItem { |