From 36f97d39a461ae52489428867704590b78cd3257 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Tue, 26 May 2020 18:45:14 -0400 Subject: Fix the `should_panic` snippet Closes #4628 --- crates/ra_ide/src/completion/complete_attribute.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates') diff --git a/crates/ra_ide/src/completion/complete_attribute.rs b/crates/ra_ide/src/completion/complete_attribute.rs index f17266221..fb3f0b743 100644 --- a/crates/ra_ide/src/completion/complete_attribute.rs +++ b/crates/ra_ide/src/completion/complete_attribute.rs @@ -112,7 +112,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[ AttrCompletion { label: "repr", snippet: Some("repr(${0:C})"), should_be_inner: false }, AttrCompletion { label: "should_panic", - snippet: Some(r#"expected = "${0:reason}""#), + snippet: Some(r#"should_panic(expected = "${0:reason}")"#), should_be_inner: false, }, AttrCompletion { @@ -571,7 +571,7 @@ mod tests { label: "should_panic", source_range: 19..19, delete: 19..19, - insert: "expected = \"${0:reason}\"", + insert: "should_panic(expected = \"${0:reason}\")", kind: Attribute, }, CompletionItem { @@ -810,7 +810,7 @@ mod tests { label: "should_panic", source_range: 20..20, delete: 20..20, - insert: "expected = \"${0:reason}\"", + insert: "should_panic(expected = \"${0:reason}\")", kind: Attribute, }, CompletionItem { -- cgit v1.2.3