Skip to content

Commit 3083b23

Browse files
lroolleHenrik Lissner
authored and
Henrik Lissner
committed
rust-mode: add async fn
1 parent ef3ec61 commit 3083b23

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

rust-mode/async_fn

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# -*- mode: snippet -*-
2+
# name: async function
3+
# key: afn
4+
# uuid: afn
5+
# condition: (doom-snippets-bolp)
6+
# --
7+
async fn ${1:function_name}($2) ${3:-> ${4:i32} }{
8+
`%`$0
9+
}

rust-mode/pub_async_fn

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# -*- mode: snippet -*-
2+
# name: public async function
3+
# key: pafn
4+
# uuid: pafn
5+
# condition: (doom-snippets-bolp)
6+
# --
7+
pub async fn ${1:function_name}($2) ${3:-> ${4:i32} }{
8+
`%`$0
9+
}

0 commit comments

Comments
 (0)