From 9f952870834e4deb62893a44ed3c0cff395f7c4f Mon Sep 17 00:00:00 2001 From: Vzaa Date: Wed, 9 Mar 2016 13:34:44 +0200 Subject: [PATCH] Rust: remove semicolons from constructor returns --- UltiSnips/rust.snippets | 2 +- snippets/rust.snippets | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UltiSnips/rust.snippets b/UltiSnips/rust.snippets index d2223a4..40e7605 100644 --- a/UltiSnips/rust.snippets +++ b/UltiSnips/rust.snippets @@ -88,7 +88,7 @@ pub struct ${1:`!p snip.rv = snip.basename.title() or "Name"`} { impl $1 { pub fn new(${2}) -> $1 { - $1 { ${3} }; + $1 { ${3} } } } endsnippet diff --git a/snippets/rust.snippets b/snippets/rust.snippets index 9bf896f..20532f7 100644 --- a/snippets/rust.snippets +++ b/snippets/rust.snippets @@ -25,7 +25,7 @@ snippet bench "Bench function" b } snippet new "Constructor function" pub fn new(${2}) -> ${1:Name} { - $1 { ${3} }; + $1 { ${3} } } snippet main "Main function" pub fn main() { @@ -143,7 +143,7 @@ snippet stn "Struct with new constructor" impl $1 { pub fn new(${2}) -> $1 { - $1 { ${3} }; + $1 { ${3} } } } snippet type "Type alias"