Skip to content

Commit a24df13

Browse files
authored
Merge pull request #2838 from nrc/chains
Refactor chain formatting and fix some bugs
2 parents d328884 + df4fb8a commit a24df13

31 files changed

+705
-459
lines changed

src/bin/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,7 @@ fn determine_operation(matches: &Matches) -> Result<Operation, ErrorKind> {
422422
// we will do comparison later, so here tries to canonicalize first
423423
// to get the expected behavior.
424424
p.canonicalize().unwrap_or(p)
425-
})
426-
.collect();
425+
}).collect();
427426

428427
Ok(Operation::Format {
429428
files,

src/cargo-fmt/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ fn format_crate(
163163
if verbosity == Verbosity::Verbose {
164164
println!("[{}] {:?}", t.kind, t.path)
165165
}
166-
})
167-
.map(|t| t.path)
166+
}).map(|t| t.path)
168167
.collect();
169168

170169
run_rustfmt(&files, &rustfmt_args, verbosity)

0 commit comments

Comments
 (0)