Skip to content

Commit

Permalink
rust-mode: bug fix, consistency clean up + spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyandresen committed Aug 1, 2016
1 parent a343f3c commit e6971ff
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion rust-mode/closure
Expand Up @@ -4,4 +4,4 @@
# --
|${1:arguments}| {
$0
}
}
2 changes: 1 addition & 1 deletion rust-mode/deny!
Expand Up @@ -2,4 +2,4 @@
# name: #![deny(lint)]
# key: deny!
# --
#![deny(${1:lint})]
#![deny(${1:lint})]
2 changes: 1 addition & 1 deletion rust-mode/println
Expand Up @@ -2,4 +2,4 @@
# name: println!("{}", value);
# key: println
# --
println!("${1:{}}", ${2});
println!("${1:{}}", $2);
7 changes: 7 additions & 0 deletions rust-mode/spawn
@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: spawn(proc() { ... });
# key: spawn
# --
spawn(proc() {
$0
});
2 changes: 1 addition & 1 deletion rust-mode/test
Expand Up @@ -4,5 +4,5 @@
# --
#[test]
fn ${1:test_name}() {
${2:()}
$0
}
4 changes: 2 additions & 2 deletions rust-mode/testmod
Expand Up @@ -8,6 +8,6 @@ mod tests {

#[test]
fn ${1:test_name}() {
${2:()}
$0
}
}
}
4 changes: 2 additions & 2 deletions rust-mode/whilel
Expand Up @@ -2,6 +2,6 @@
# name: while let pattern = expression { ... }
# key: whilel
# --
while let ${1:pattern} = ${2:value} {
while let ${1:pattern} = ${2:expression} {
$0
}
}

0 comments on commit e6971ff

Please sign in to comment.