Skip to content

Commit fa36367

Browse files
authored
Merge pull request rafamadriz#428 from rafamadriz/416-remove-trivial-rust-snippets
416 - Remove some trivial rust snippets
2 parents d5f74ce + bde92b8 commit fa36367

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

snippets/rust/rust.json

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -184,21 +184,6 @@
184184
"body": ["writeln!(${1}, \"${2}\")"],
185185
"description": "writeln!(…, …)"
186186
},
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-
},
202187
"assert": {
203188
"prefix": "assert",
204189
"body": ["assert!(${1});"],
@@ -229,11 +214,6 @@
229214
"body": ["#[derive(${1})]"],
230215
"description": "#[derive(…)]"
231216
},
232-
"else": {
233-
"prefix": "else",
234-
"body": ["else {", " ${1:todo!();}", "}"],
235-
"description": "else { … }"
236-
},
237217
"enum": {
238218
"prefix": "enum",
239219
"body": [
@@ -314,11 +294,6 @@
314294
],
315295
"description": "impl … for … { … }"
316296
},
317-
"impl": {
318-
"prefix": "impl",
319-
"body": ["impl ${1:Type} {", " ${2:// add code here}", "}"],
320-
"description": "impl … { … }"
321-
},
322297
"inline-fn": {
323298
"prefix": "inline-fn",
324299
"body": [
@@ -329,16 +304,6 @@
329304
],
330305
"description": "inlined function"
331306
},
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-
},
342307
"macro_rules": {
343308
"prefix": "macro_rules",
344309
"body": ["macro_rules! ${1:name} {", " (${2}) => (${3})", "}"],
@@ -356,11 +321,6 @@
356321
],
357322
"description": "match … { … }"
358323
},
359-
"mod": {
360-
"prefix": "mod",
361-
"body": ["mod ${1:name};"],
362-
"description": "mod …;"
363-
},
364324
"mod-block": {
365325
"prefix": "mod-block",
366326
"body": ["mod ${1:name} {", " ${2:// add code here}", "}"],

0 commit comments

Comments
 (0)