emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/yasnippet-snippets 3ba80dd191 02/12: Use the standard inde


From: ELPA Syncer
Subject: [nongnu] elpa/yasnippet-snippets 3ba80dd191 02/12: Use the standard indentation on rust-mode snippets
Date: Wed, 13 Jul 2022 08:59:22 -0400 (EDT)

branch: elpa/yasnippet-snippets
commit 3ba80dd191b4e907892f6d63566f161743c1310f
Author: Juan Palacios <jpalaciosdev@gmail.com>
Commit: Juan Palacios <jpalaciosdev@gmail.com>

    Use the standard indentation on rust-mode snippets
    
    The standard indentation is 4 spaces:
    
https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md#indentation-and-line-width
---
 snippets/rust-mode/closure | 4 ++--
 snippets/rust-mode/drop    | 8 ++++----
 snippets/rust-mode/enum    | 4 ++--
 snippets/rust-mode/fnr     | 4 ++--
 snippets/rust-mode/fnw     | 4 ++--
 snippets/rust-mode/from    | 4 ++--
 snippets/rust-mode/ife     | 6 +++---
 snippets/rust-mode/impl    | 4 ++--
 snippets/rust-mode/implt   | 4 ++--
 snippets/rust-mode/loop    | 4 ++--
 snippets/rust-mode/macro   | 4 ++--
 snippets/rust-mode/main    | 4 ++--
 snippets/rust-mode/match   | 4 ++--
 snippets/rust-mode/new     | 4 ++--
 snippets/rust-mode/pfnr    | 4 ++--
 snippets/rust-mode/pfnw    | 4 ++--
 snippets/rust-mode/spawn   | 4 ++--
 snippets/rust-mode/struct  | 4 ++--
 snippets/rust-mode/test    | 4 ++--
 snippets/rust-mode/testmod | 4 ++--
 snippets/rust-mode/trait   | 4 ++--
 snippets/rust-mode/union   | 4 ++--
 snippets/rust-mode/while   | 4 ++--
 snippets/rust-mode/whilel  | 4 ++--
 24 files changed, 51 insertions(+), 51 deletions(-)

diff --git a/snippets/rust-mode/closure b/snippets/rust-mode/closure
index 82579836b0..1624d5700d 100644
--- a/snippets/rust-mode/closure
+++ b/snippets/rust-mode/closure
@@ -3,5 +3,5 @@
 # key: ||
 # --
 |${1:arguments}| {
-       $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/drop b/snippets/rust-mode/drop
index 310d0ad047..ba23a5b0f1 100644
--- a/snippets/rust-mode/drop
+++ b/snippets/rust-mode/drop
@@ -3,7 +3,7 @@
 # key: drop
 # --
 impl Drop for ${1:Type} {
-     fn drop(&mut self) {
-          $0
-      }
-}
\ No newline at end of file
+    fn drop(&mut self) {
+        $0
+    }
+}
diff --git a/snippets/rust-mode/enum b/snippets/rust-mode/enum
index 058aadc187..acf919b872 100644
--- a/snippets/rust-mode/enum
+++ b/snippets/rust-mode/enum
@@ -3,5 +3,5 @@
 # key: enum
 # --
 enum ${1:Type} {
-     $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/fnr b/snippets/rust-mode/fnr
index 4a4db71aad..fa98eb2019 100644
--- a/snippets/rust-mode/fnr
+++ b/snippets/rust-mode/fnr
@@ -3,5 +3,5 @@
 # key: fnr
 # --
 fn ${1:name}($2) -> ${3:Type} {
-     $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/fnw b/snippets/rust-mode/fnw
index 77bee6e36e..321c29217e 100644
--- a/snippets/rust-mode/fnw
+++ b/snippets/rust-mode/fnw
@@ -3,5 +3,5 @@
 # key: fnw
 # --
 fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} {
-     $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/from b/snippets/rust-mode/from
index e04e7f0292..9e86209e3d 100644
--- a/snippets/rust-mode/from
+++ b/snippets/rust-mode/from
@@ -4,7 +4,7 @@
 # --
 impl From<${1:From}> for ${2:Type} {
     fn from(source: $1) -> Self {
-       $0
-       Self { }
+        $0
+        Self { }
     }
 }
diff --git a/snippets/rust-mode/ife b/snippets/rust-mode/ife
index c738d4be6f..12f2b56e82 100644
--- a/snippets/rust-mode/ife
+++ b/snippets/rust-mode/ife
@@ -3,7 +3,7 @@
 # key: ife
 # --
 if ${1:expression} {
-   $0
+    $0
 } else {
-   
-}
\ No newline at end of file
+    
+}
diff --git a/snippets/rust-mode/impl b/snippets/rust-mode/impl
index 2d90db91f1..14bb06f7c4 100644
--- a/snippets/rust-mode/impl
+++ b/snippets/rust-mode/impl
@@ -3,5 +3,5 @@
 # key: impl
 # --
 impl ${1:Type} {
-     $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/implt b/snippets/rust-mode/implt
index 54269dfd30..0ed9b7dd54 100644
--- a/snippets/rust-mode/implt
+++ b/snippets/rust-mode/implt
@@ -3,5 +3,5 @@
 # key: implt
 # --
 impl ${1:Trait} for ${2:Type} {
-     $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/loop b/snippets/rust-mode/loop
index 2285b7526c..e24ae616ad 100644
--- a/snippets/rust-mode/loop
+++ b/snippets/rust-mode/loop
@@ -3,5 +3,5 @@
 # key: loop
 # --
 loop {
-     $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/macro b/snippets/rust-mode/macro
index b07f748964..410c1329bb 100644
--- a/snippets/rust-mode/macro
+++ b/snippets/rust-mode/macro
@@ -3,5 +3,5 @@
 # key: macro
 # --
 macro_rules! ${1:name} {
-     ($2) => ($3);
-}
\ No newline at end of file
+    ($2) => ($3);
+}
diff --git a/snippets/rust-mode/main b/snippets/rust-mode/main
index 75ae143c4d..3f9fe318ac 100644
--- a/snippets/rust-mode/main
+++ b/snippets/rust-mode/main
@@ -3,5 +3,5 @@
 # key: main
 # --
 fn main() {
-   $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/match b/snippets/rust-mode/match
index 54b7c806c9..9dc802f113 100644
--- a/snippets/rust-mode/match
+++ b/snippets/rust-mode/match
@@ -3,5 +3,5 @@
 # key: match
 # --
 match ${1:expression} {
-      $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/new b/snippets/rust-mode/new
index 86d20e6c93..c5f21c13ae 100644
--- a/snippets/rust-mode/new
+++ b/snippets/rust-mode/new
@@ -3,5 +3,5 @@
 # key: new
 # --
 pub fn new($1) -> ${2:Name} {
-   $2 { ${3} }
-}
\ No newline at end of file
+    $2 { ${3} }
+}
diff --git a/snippets/rust-mode/pfnr b/snippets/rust-mode/pfnr
index e3490e2cd0..4fdd2610cc 100644
--- a/snippets/rust-mode/pfnr
+++ b/snippets/rust-mode/pfnr
@@ -3,5 +3,5 @@
 # key: pfnr
 # --
 pub fn ${1:name}($2) -> ${3:Type} {
-     $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/pfnw b/snippets/rust-mode/pfnw
index 4ad59a0c14..c264400606 100644
--- a/snippets/rust-mode/pfnw
+++ b/snippets/rust-mode/pfnw
@@ -3,5 +3,5 @@
 # key: pfnw
 # --
 pub fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} {
-     $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/spawn b/snippets/rust-mode/spawn
index 4b44cccf91..c5b74456a5 100644
--- a/snippets/rust-mode/spawn
+++ b/snippets/rust-mode/spawn
@@ -3,5 +3,5 @@
 # key: spawn
 # --
 spawn(proc() {
-      $0
-});
\ No newline at end of file
+    $0
+});
diff --git a/snippets/rust-mode/struct b/snippets/rust-mode/struct
index 1c2e4c8cb3..7de2ffa772 100644
--- a/snippets/rust-mode/struct
+++ b/snippets/rust-mode/struct
@@ -3,5 +3,5 @@
 # key: struct
 # --
 struct ${1:TypeName} {
-       $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/test b/snippets/rust-mode/test
index c83d83d6df..26efca13ea 100644
--- a/snippets/rust-mode/test
+++ b/snippets/rust-mode/test
@@ -4,5 +4,5 @@
 # --
 #[test]
 fn ${1:test_name}() {
-   $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/testmod b/snippets/rust-mode/testmod
index f0be987df7..d3494b702b 100644
--- a/snippets/rust-mode/testmod
+++ b/snippets/rust-mode/testmod
@@ -8,6 +8,6 @@ mod ${1:tests} {
 
     #[test]
     fn ${2:test_name}() {
-       $0
+        $0
     }
-}
\ No newline at end of file
+}
diff --git a/snippets/rust-mode/trait b/snippets/rust-mode/trait
index 15ab201260..724df7f5f6 100644
--- a/snippets/rust-mode/trait
+++ b/snippets/rust-mode/trait
@@ -3,5 +3,5 @@
 # key: trait
 # --
 trait ${1:Type} {
-      $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/union b/snippets/rust-mode/union
index bfd93aaaad..92585a265e 100644
--- a/snippets/rust-mode/union
+++ b/snippets/rust-mode/union
@@ -3,5 +3,5 @@
 # key: union
 # --
 union ${1:Type} {
-     $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/while b/snippets/rust-mode/while
index 2fa221a958..dbb366391b 100644
--- a/snippets/rust-mode/while
+++ b/snippets/rust-mode/while
@@ -3,5 +3,5 @@
 # key: while
 # --
 while ${1:expression} {
-      $0
-}
\ No newline at end of file
+    $0
+}
diff --git a/snippets/rust-mode/whilel b/snippets/rust-mode/whilel
index 7f807e19c4..91370147da 100644
--- a/snippets/rust-mode/whilel
+++ b/snippets/rust-mode/whilel
@@ -3,5 +3,5 @@
 # key: whilel
 # --
 while let ${1:pattern} = ${2:expression} {
-      $0
-}
\ No newline at end of file
+    $0
+}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]