We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11d61e3 + 31b1879 commit 6d2e40bCopy full SHA for 6d2e40b
README.md
@@ -87,6 +87,7 @@ the following snippets:
87
* `unimplemented`
88
* `unreachable`
89
* `println`
90
+* `assert` and `assert_eq`
91
* `macro_rules` - declare a macro
92
* `if let Option` - an `if let` statement for executing code only in the `Some`
93
case.
snippets/rust.json
@@ -36,6 +36,20 @@
36
],
37
"description": "Insert println!"
38
},
39
+ "assert": {
40
+ "prefix": "assert",
41
+ "body": [
42
+ "assert!($1)$0"
43
+ ],
44
+ "description": "Insert assert!"
45
+ },
46
+ "assert_eq": {
47
+ "prefix": "assert_eq",
48
49
+ "assert_eq!($1, $2)$0"
50
51
+ "description": "Insert assert_eq!"
52
53
"macro_rules": {
54
"prefix": "macro_rules",
55
"body": [
0 commit comments