File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change 1
1
' .source.rust' :
2
+ ' allow' :
3
+ ' prefix' : ' allow'
4
+ ' body' : ' #[allow(${1:lint})]'
5
+ ' allow!' :
6
+ ' prefix' : ' allow!'
7
+ ' body' : ' #![allow(${1:lint})]'
8
+ ' deny' :
9
+ ' prefix' : ' deny'
10
+ ' body' : ' #[deny(${1:lint})]'
11
+ ' deny!' :
12
+ ' prefix' : ' deny!'
13
+ ' body' : ' #![deny(${1:lint})]'
14
+ ' derive' :
15
+ ' prefix' : ' derive'
16
+ ' body' : ' #[derive(${1:Trait})]'
2
17
' enum' :
3
18
' prefix' : ' enum'
4
19
' body' : '''
119
134
' type' :
120
135
' prefix' : ' type'
121
136
' body' : ' type ${1:TypeName} = ${2:TypeName};'
137
+ ' warn' :
138
+ ' prefix' : ' warn'
139
+ ' body' : ' #[warn(${1:lint})]'
140
+ ' warn!' :
141
+ ' prefix' : ' warn!'
142
+ ' body' : ' #![warn(${1:lint})]'
122
143
' while' :
123
144
' prefix' : ' while'
124
145
' body' : '''
125
146
while ${1:expression} {
126
147
\t $2
127
148
}
128
149
'''
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})]'
You can’t perform that action at this time.
0 commit comments