diff --git a/UltiSnips/rust.snippets b/UltiSnips/rust.snippets index 3bc0f79..a27d6fa 100644 --- a/UltiSnips/rust.snippets +++ b/UltiSnips/rust.snippets @@ -91,4 +91,10 @@ snippet fd "Struct field definition" w ${1:name}: ${2:Type}, endsnippet +snippet impl "Struct/Trait implementation" b +impl ${1:Type/Trait}${2: for ${3:Type}} { + ${0} +} +endsnippet + # vim:ft=snippets: diff --git a/snippets/rust.snippets b/snippets/rust.snippets index 96ec52e..8882c08 100644 --- a/snippets/rust.snippets +++ b/snippets/rust.snippets @@ -128,7 +128,7 @@ snippet st "Struct definition" ${0} } snippet impl "Struct/Trait implementation" - impl ${1:Type/Trait}${2: ${3:for Type}} { + impl ${1:Type/Trait}${2: for ${3:Type}} { ${0} } snippet stn "Struct with new constructor"