mirror of
https://github.com/rafamadriz/friendly-snippets
synced 2024-09-16 22:14:02 +02:00
Merge pull request #428 from rafamadriz/416-remove-trivial-rust-snippets
416 - Remove some trivial rust snippets
This commit is contained in:
commit
fa36367422
1 changed files with 0 additions and 40 deletions
|
@ -184,21 +184,6 @@
|
|||
"body": ["writeln!(${1}, \"${2}\")"],
|
||||
"description": "writeln!(…, …)"
|
||||
},
|
||||
"Err": {
|
||||
"prefix": "Err",
|
||||
"body": ["Err(${1})"],
|
||||
"description": "Err(…)"
|
||||
},
|
||||
"Ok": {
|
||||
"prefix": "Ok",
|
||||
"body": ["Ok(${1:result})"],
|
||||
"description": "Ok(…)"
|
||||
},
|
||||
"Some": {
|
||||
"prefix": "Some",
|
||||
"body": ["Some(${1})"],
|
||||
"description": "Some(…)"
|
||||
},
|
||||
"assert": {
|
||||
"prefix": "assert",
|
||||
"body": ["assert!(${1});"],
|
||||
|
@ -229,11 +214,6 @@
|
|||
"body": ["#[derive(${1})]"],
|
||||
"description": "#[derive(…)]"
|
||||
},
|
||||
"else": {
|
||||
"prefix": "else",
|
||||
"body": ["else {", " ${1:todo!();}", "}"],
|
||||
"description": "else { … }"
|
||||
},
|
||||
"enum": {
|
||||
"prefix": "enum",
|
||||
"body": [
|
||||
|
@ -314,11 +294,6 @@
|
|||
],
|
||||
"description": "impl … for … { … }"
|
||||
},
|
||||
"impl": {
|
||||
"prefix": "impl",
|
||||
"body": ["impl ${1:Type} {", " ${2:// add code here}", "}"],
|
||||
"description": "impl … { … }"
|
||||
},
|
||||
"inline-fn": {
|
||||
"prefix": "inline-fn",
|
||||
"body": [
|
||||
|
@ -329,16 +304,6 @@
|
|||
],
|
||||
"description": "inlined function"
|
||||
},
|
||||
"let": {
|
||||
"prefix": "let",
|
||||
"body": ["let ${1:pat} = ${2:expr};"],
|
||||
"description": "let … = …;"
|
||||
},
|
||||
"loop": {
|
||||
"prefix": "loop",
|
||||
"body": ["loop {", " ${2:todo!();}", "}"],
|
||||
"description": "loop { … }"
|
||||
},
|
||||
"macro_rules": {
|
||||
"prefix": "macro_rules",
|
||||
"body": ["macro_rules! ${1:name} {", " (${2}) => (${3})", "}"],
|
||||
|
@ -356,11 +321,6 @@
|
|||
],
|
||||
"description": "match … { … }"
|
||||
},
|
||||
"mod": {
|
||||
"prefix": "mod",
|
||||
"body": ["mod ${1:name};"],
|
||||
"description": "mod …;"
|
||||
},
|
||||
"mod-block": {
|
||||
"prefix": "mod-block",
|
||||
"body": ["mod ${1:name} {", " ${2:// add code here}", "}"],
|
||||
|
|
Loading…
Reference in a new issue