A bunch of new snippets
This commit is contained in:
parent
a3eb6846b3
commit
23b179ad1d
12 changed files with 76 additions and 0 deletions
5
snippets/rust-mode/#[macro_use]
Normal file
5
snippets/rust-mode/#[macro_use]
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# key: macro_use
|
||||
# name: #[macro_use]
|
||||
# --
|
||||
#[macro_use]
|
||||
${1:extern crate} ${2:something};$0
|
||||
9
snippets/rust-mode/tests
Normal file
9
snippets/rust-mode/tests
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# key: tests
|
||||
# name: test module
|
||||
# --
|
||||
#[cfg(test)]
|
||||
mod ${1:tests} {
|
||||
use super::*;
|
||||
|
||||
$0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue