about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorSeiichi Uchida <seuchida@gmail.com>2018-09-19 23:22:26 +0900
committerSeiichi Uchida <seuchida@gmail.com>2018-09-19 23:22:26 +0900
commite2b9c66cc9d3228339d07cb5410f6cabdac97de8 (patch)
tree5b796cfcd88ff2c317b5e1be540f6a58d01851a9 /src/test
parentd4f7e219dcd74989f695fe261534cc8fef5b1477 (diff)
Cargo fmt
Diffstat (limited to 'src/test')
-rw-r--r--src/test/mod.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs
index f7848dfd737..a9015cedf6a 100644
--- a/src/test/mod.rs
+++ b/src/test/mod.rs
@@ -514,7 +514,8 @@ fn read_significant_comments(file_name: &Path) -> HashMap<String, String> {
                         .to_owned(),
                 )
             })
-        }).collect()
+        })
+        .collect()
 }
 
 // Compare output to input.
@@ -882,7 +883,8 @@ fn configuration_snippet_tests() {
         let mut file_iter = BufReader::new(
             fs::File::open(Path::new(CONFIGURATIONS_FILE_NAME))
                 .expect(&format!("Couldn't read file {}", CONFIGURATIONS_FILE_NAME)),
-        ).lines()
+        )
+        .lines()
         .map(|l| l.unwrap())
         .enumerate();
         let mut code_blocks: Vec<ConfigCodeBlock> = Vec::new();
@@ -970,6 +972,7 @@ fn verify_check_works() {
         rustfmt().to_str().unwrap(),
         "--check",
         temp_file.path.to_str().unwrap(),
-    ]).succeeds()
+    ])
+    .succeeds()
     .unwrap();
 }