Skip to content

Commit

Permalink
Merge pull request honza#696 from Vzaa/master
Browse files Browse the repository at this point in the history
Rust: remove semicolons from constructor returns
  • Loading branch information
lpil committed Mar 9, 2016
2 parents c2ffea6 + 9f95287 commit 743be1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion UltiSnips/rust.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions snippets/rust.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 743be1a

Please sign in to comment.