Skip to content

Commit bb9f6cc

Browse files
committed
Add snippets for the derive and allow attributes
1 parent 7a9e1d8 commit bb9f6cc

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)