rust: Fix nesting for impl snippet in SM/US

This commit is contained in:
Ches Martin 2015-02-28 21:15:58 -05:00
parent f2929081b1
commit 982f347238
2 changed files with 7 additions and 1 deletions

View File

@ -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:

View File

@ -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"