about summary refs log tree commit diff
path: root/users/glittershark/emacs.d/snippets/rust-mode
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/emacs.d/snippets/rust-mode')
-rw-r--r--users/glittershark/emacs.d/snippets/rust-mode/#[macro_use]5
-rw-r--r--users/glittershark/emacs.d/snippets/rust-mode/tests9
2 files changed, 14 insertions, 0 deletions
diff --git a/users/glittershark/emacs.d/snippets/rust-mode/#[macro_use] b/users/glittershark/emacs.d/snippets/rust-mode/#[macro_use]
new file mode 100644
index 000000000000..fea942a337f6
--- /dev/null
+++ b/users/glittershark/emacs.d/snippets/rust-mode/#[macro_use]
@@ -0,0 +1,5 @@
+# key: macro_use
+# name: #[macro_use]
+# --
+#[macro_use]
+${1:extern crate} ${2:something};$0
diff --git a/users/glittershark/emacs.d/snippets/rust-mode/tests b/users/glittershark/emacs.d/snippets/rust-mode/tests
new file mode 100644
index 000000000000..0a476ab58661
--- /dev/null
+++ b/users/glittershark/emacs.d/snippets/rust-mode/tests
@@ -0,0 +1,9 @@
+# key: tests
+# name: test module
+# --
+#[cfg(test)]
+mod ${1:tests} {
+    use super::*;
+
+    $0
+}