|
184 | 184 | "body": ["writeln!(${1}, \"${2}\")"],
|
185 | 185 | "description": "writeln!(…, …)"
|
186 | 186 | },
|
187 |
| - "Err": { |
188 |
| - "prefix": "Err", |
189 |
| - "body": ["Err(${1})"], |
190 |
| - "description": "Err(…)" |
191 |
| - }, |
192 |
| - "Ok": { |
193 |
| - "prefix": "Ok", |
194 |
| - "body": ["Ok(${1:result})"], |
195 |
| - "description": "Ok(…)" |
196 |
| - }, |
197 |
| - "Some": { |
198 |
| - "prefix": "Some", |
199 |
| - "body": ["Some(${1})"], |
200 |
| - "description": "Some(…)" |
201 |
| - }, |
202 | 187 | "assert": {
|
203 | 188 | "prefix": "assert",
|
204 | 189 | "body": ["assert!(${1});"],
|
|
229 | 214 | "body": ["#[derive(${1})]"],
|
230 | 215 | "description": "#[derive(…)]"
|
231 | 216 | },
|
232 |
| - "else": { |
233 |
| - "prefix": "else", |
234 |
| - "body": ["else {", " ${1:todo!();}", "}"], |
235 |
| - "description": "else { … }" |
236 |
| - }, |
237 | 217 | "enum": {
|
238 | 218 | "prefix": "enum",
|
239 | 219 | "body": [
|
|
314 | 294 | ],
|
315 | 295 | "description": "impl … for … { … }"
|
316 | 296 | },
|
317 |
| - "impl": { |
318 |
| - "prefix": "impl", |
319 |
| - "body": ["impl ${1:Type} {", " ${2:// add code here}", "}"], |
320 |
| - "description": "impl … { … }" |
321 |
| - }, |
322 | 297 | "inline-fn": {
|
323 | 298 | "prefix": "inline-fn",
|
324 | 299 | "body": [
|
|
329 | 304 | ],
|
330 | 305 | "description": "inlined function"
|
331 | 306 | },
|
332 |
| - "let": { |
333 |
| - "prefix": "let", |
334 |
| - "body": ["let ${1:pat} = ${2:expr};"], |
335 |
| - "description": "let … = …;" |
336 |
| - }, |
337 |
| - "loop": { |
338 |
| - "prefix": "loop", |
339 |
| - "body": ["loop {", " ${2:todo!();}", "}"], |
340 |
| - "description": "loop { … }" |
341 |
| - }, |
342 | 307 | "macro_rules": {
|
343 | 308 | "prefix": "macro_rules",
|
344 | 309 | "body": ["macro_rules! ${1:name} {", " (${2}) => (${3})", "}"],
|
|
356 | 321 | ],
|
357 | 322 | "description": "match … { … }"
|
358 | 323 | },
|
359 |
| - "mod": { |
360 |
| - "prefix": "mod", |
361 |
| - "body": ["mod ${1:name};"], |
362 |
| - "description": "mod …;" |
363 |
| - }, |
364 | 324 | "mod-block": {
|
365 | 325 | "prefix": "mod-block",
|
366 | 326 | "body": ["mod ${1:name} {", " ${2:// add code here}", "}"],
|
|
0 commit comments