A bunch of new snippets

This commit is contained in:
Griffin Smith 2019-07-09 17:50:51 -04:00
parent a3eb6846b3
commit 23b179ad1d
12 changed files with 76 additions and 0 deletions

View 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
View file

@ -0,0 +1,9 @@
# key: tests
# name: test module
# --
#[cfg(test)]
mod ${1:tests} {
use super::*;
$0
}