]> git.lizzy.rs Git - rust.git/commitdiff
Fix self test
authorsinkuu <sinkuupump@gmail.com>
Mon, 19 Sep 2016 02:48:56 +0000 (11:48 +0900)
committersinkuu <sinkuupump@gmail.com>
Mon, 19 Sep 2016 02:48:56 +0000 (11:48 +0900)
src/items.rs

index b381ba8b7b28880a8d535083d7789d4ba38b1a51..8e6845c64b6e74eab7626312e442b0091ec2d954 100644 (file)
@@ -1051,15 +1051,15 @@ pub fn rewrite_type_alias(context: &RewriteContext,
 
 fn type_annotation_spacing(config: &Config) -> (&str, &str) {
     (if config.space_before_type_annotation {
-        " "
-    } else {
-        ""
-    },
+         " "
+     } else {
+         ""
+     },
      if config.space_after_type_annotation_colon {
-        " "
-    } else {
-        ""
-    })
+         " "
+     } else {
+         ""
+     })
 }
 
 impl Rewrite for ast::StructField {