From b06c95aedaa9c11957797ef706d1bad9d43fc3f7 Mon Sep 17 00:00:00 2001 From: Ma_124 Date: Sun, 24 Apr 2022 14:24:59 +0200 Subject: [PATCH] Change tabs to spacs in macro_rules snippet --- crates/ide_completion/src/completions/snippet.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/ide_completion/src/completions/snippet.rs b/crates/ide_completion/src/completions/snippet.rs index 0a3d594e41..6a0e09dd64 100644 --- a/crates/ide_completion/src/completions/snippet.rs +++ b/crates/ide_completion/src/completions/snippet.rs @@ -94,7 +94,17 @@ fn ${1:feature}() { item.lookup_by("tfn"); item.add_to(acc); - let item = snippet(ctx, cap, "macro_rules", "macro_rules! $1 {\n\t($2) => {\n\t\t$0\n\t};\n}"); + let item = snippet( + ctx, + cap, + "macro_rules", + "\ +macro_rules! $1 { + ($2) => { + $0 + }; +}", + ); item.add_to(acc); }