From b811922a530b7b22469b386a521946f1003911c7 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 22 Apr 2019 10:38:39 +0300 Subject: fix postfix match indent --- crates/ra_ide_api/src/completion/complete_postfix.rs | 2 +- ..._item__postfix_completion_works_for_trivial_path_expression.snap | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates') 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) { ctx, "match", "match expr {}", - &format!("match {} {{\n${{1:_}} => {{$0\\}},\n}}", receiver_text), + &format!("match {} {{\n ${{1:_}} => {{$0\\}},\n}}", receiver_text), ) .add_to(acc); 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 @@ --- -created: "2019-02-18T09:22:24.127119709Z" -creator: insta@0.6.2 +created: "2019-04-22T07:37:13.981826301Z" +creator: insta@0.7.4 source: crates/ra_ide_api/src/completion/completion_item.rs expression: kind_completions --- @@ -23,7 +23,7 @@ expression: kind_completions label: "match", source_range: [76; 76), delete: [72; 76), - insert: "match bar {\n${1:_} => {$0\\},\n}", + insert: "match bar {\n ${1:_} => {$0\\},\n}", detail: "match expr {}" }, CompletionItem { -- cgit v1.2.3