From 604627d8fdf2cc43a41418d14818f848d6f9cfe4 Mon Sep 17 00:00:00 2001 From: Filius Patris Date: Tue, 19 May 2020 20:14:05 +0200 Subject: [PATCH 1/2] Add String::from() snippet --- snippets/rust.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/snippets/rust.json b/snippets/rust.json index 5bf22acf..febd9150 100644 --- a/snippets/rust.json +++ b/snippets/rust.json @@ -71,4 +71,11 @@ ], "description": "#[test]" } + "String::from()": { + "prefix": "strfrom", + "body": [ + "String::from(\"$1\")$0" + ], + "description": "String::from(\"…\")" + } } From c48ea0030b004aa26a043d6382a316b186728ea2 Mon Sep 17 00:00:00 2001 From: Filius Patris Date: Sat, 25 Jul 2020 19:30:41 +0200 Subject: [PATCH 2/2] Convert intendation to spaces --- snippets/rust.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/snippets/rust.json b/snippets/rust.json index febd9150..8f85b71b 100644 --- a/snippets/rust.json +++ b/snippets/rust.json @@ -70,12 +70,12 @@ "}" ], "description": "#[test]" + }, + "String::from()": { + "prefix": "strfrom", + "body": [ + "String::from(\"$1\")$0" + ], + "description": "String::from(\"…\")" } - "String::from()": { - "prefix": "strfrom", - "body": [ - "String::from(\"$1\")$0" - ], - "description": "String::from(\"…\")" - } -} +} \ No newline at end of file