Skip to content

Commit

Permalink
todo instead of unimplemented (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-ardi authored Mar 31, 2024
1 parent 4d43e3e commit 9fba582
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions snippets/rust/rust.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
},
"else": {
"prefix": "else",
"body": ["else {", " ${1:unimplemented!();}", "}"],
"body": ["else {", " ${1:todo!();}", "}"],
"description": "else { … }"
},
"enum": {
Expand Down Expand Up @@ -268,7 +268,7 @@
"prefix": "pfn",
"body": [
"pub fn ${1:name}(${2:arg}: ${3:Type}) -> ${4:RetType} {",
" ${5:unimplemented!();}",
" ${5:todo!();}",
"}"
],
"description": "pub fn …(…) { … }"
Expand All @@ -277,7 +277,7 @@
"prefix": "fn",
"body": [
"fn ${1:name}(${2:arg}: ${3:Type}) -> ${4:RetType} {",
" ${5:unimplemented!();}",
" ${5:todo!();}",
"}"
],
"description": "fn …(…) { … }"
Expand All @@ -286,7 +286,7 @@
"prefix": "for",
"body": [
"for ${1:pat} in ${2:expr} {",
" ${3:unimplemented!();}",
" ${3:todo!();}",
"}"
],
"description": "for … in … { … }"
Expand All @@ -295,14 +295,14 @@
"prefix": "if-let",
"body": [
"if let ${1:Some(pat)} = ${2:expr} {",
" ${0:unimplemented!();}",
" ${0:todo!();}",
"}"
],
"description": "if let … = … { … }"
},
"if": {
"prefix": "if",
"body": ["if ${1:condition} {", " ${2:unimplemented!();}", "}"],
"body": ["if ${1:condition} {", " ${2:todo!();}", "}"],
"description": "if … { … }"
},
"impl-trait": {
Expand All @@ -324,7 +324,7 @@
"body": [
"#[inline]",
"pub fn ${1:name}() {",
" ${2:unimplemented!();}",
" ${2:todo!();}",
"}"
],
"description": "inlined function"
Expand All @@ -336,7 +336,7 @@
},
"loop": {
"prefix": "loop",
"body": ["loop {", " ${2:unimplemented!();}", "}"],
"body": ["loop {", " ${2:todo!();}", "}"],
"description": "loop { … }"
},
"macro_rules": {
Expand All @@ -346,7 +346,7 @@
},
"main": {
"prefix": "main",
"body": ["fn main() {", " ${1:unimplemented!();}", "}"],
"body": ["fn main() {", " ${1:todo!();}", "}"],
"description": "fn main() { … }"
},
"match": {
Expand Down Expand Up @@ -409,7 +409,7 @@
"body": [
"#[test]",
"fn ${1:name}() {",
" ${2:unimplemented!();}",
" ${2:todo!();}",
"}"
],
"description": "#[test]"
Expand All @@ -428,14 +428,14 @@
"prefix": "while-let",
"body": [
"while let ${1:Some(pat)} = ${2:expr} {",
" ${0:unimplemented!();}",
" ${0:todo!();}",
"}"
],
"description": "while let … = … { … }"
},
"while": {
"prefix": "while",
"body": ["while ${1:condition} {", " ${2:unimplemented!();}", "}"],
"body": ["while ${1:condition} {", " ${2:todo!();}", "}"],
"description": "while … { … }"
}
}

0 comments on commit 9fba582

Please sign in to comment.