chore(users): grfn -> aspen
Change-Id: I6c6847fac56f0a9a1a2209792e00a3aec5e672b9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10809 Autosubmit: aspen <root@gws.fyi> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
parent
0ba476a426
commit
82ecd61f5c
478 changed files with 75 additions and 77 deletions
5
users/aspen/emacs.d/snippets/rust-mode/#[macro_use]
Normal file
5
users/aspen/emacs.d/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
|
||||
10
users/aspen/emacs.d/snippets/rust-mode/async test
Normal file
10
users/aspen/emacs.d/snippets/rust-mode/async test
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: async test
|
||||
# uuid: atest
|
||||
# key: atest
|
||||
# condition: t
|
||||
# --
|
||||
#[tokio::test${1:(flavor = "multi_thread")}]
|
||||
async fn ${2:test_name}() {
|
||||
`%`$0
|
||||
}
|
||||
10
users/aspen/emacs.d/snippets/rust-mode/benchmark
Normal file
10
users/aspen/emacs.d/snippets/rust-mode/benchmark
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: benchmark
|
||||
# uuid: benchmark
|
||||
# key: bench
|
||||
# condition: t
|
||||
# --
|
||||
#[bench]
|
||||
fn ${1:benchmark_name}(b: &mut Bencher) {
|
||||
`%`b.iter(|| $0);
|
||||
}
|
||||
10
users/aspen/emacs.d/snippets/rust-mode/proptest
Normal file
10
users/aspen/emacs.d/snippets/rust-mode/proptest
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: proptest
|
||||
# uuid: proptest
|
||||
# key: proptest
|
||||
# condition: t
|
||||
# --
|
||||
#[proptest]
|
||||
fn ${1:test_name}($2) {
|
||||
`%`$0
|
||||
}
|
||||
11
users/aspen/emacs.d/snippets/rust-mode/test-module
Normal file
11
users/aspen/emacs.d/snippets/rust-mode/test-module
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: test-module
|
||||
# uuid: test-module
|
||||
# key: tmod
|
||||
# condition: t
|
||||
# --
|
||||
mod $1 {
|
||||
use super::*;
|
||||
|
||||
$0
|
||||
}
|
||||
9
users/aspen/emacs.d/snippets/rust-mode/tests
Normal file
9
users/aspen/emacs.d/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