Skip to content

Commit 15e757e

Browse files
committed
Merge pull request zargony#58 from SShrike/patch-1
Add snippets for the derive and allow attributes
2 parents db47ff0 + bb9f6cc commit 15e757e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

snippets/rust.cson

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,12 @@
126126
\t$2
127127
}
128128
'''
129+
'derive':
130+
'prefix': 'derive'
131+
'body': '#[derive(${1:trait})]'
132+
'allow':
133+
'prefix': 'allow'
134+
'body': '#[allow(${1:lint})]'
135+
'allow!':
136+
'prefix': 'allow!'
137+
'body': '#![allow(${1:lint})]'

0 commit comments

Comments
 (0)