diff options
| author | topecongiro <seuchida@gmail.com> | 2018-05-08 06:25:48 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2018-05-08 06:25:48 +0900 |
| commit | bd25c7d0f73a5b6bf888593e717be391eaeb3e58 (patch) | |
| tree | 77148bc05fd4b71315ed8ea92f15850472b954e3 /src/test | |
| parent | 0ec311ee078bea2e0d91f0f0cf821173a246110b (diff) | |
Cargo fmt
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index 06fd1e5a98f..e57a94af8c3 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -628,7 +628,8 @@ impl ConfigurationSection { Some((i, line)) => { if line.starts_with("```rust") { // Get the lines of the code block. - let lines: Vec<String> = file.map(|(_i, l)| l) + let lines: Vec<String> = file + .map(|(_i, l)| l) .take_while(|l| !l.starts_with("```")) .collect(); let block = format!("{}\n", lines.join("\n")); @@ -699,7 +700,8 @@ impl ConfigCodeBlock { assert!(self.code_block.is_some() && self.code_block_start.is_some()); // See if code block begins with #![rustfmt_skip]. - let fmt_skip = self.code_block + let fmt_skip = self + .code_block .as_ref() .unwrap() .split('\n') |
