From bfa093d394ac64cdeb4842789890cb9c88269313 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Wed, 8 Nov 2017 21:10:47 +1300 Subject: [PATCH] Fix formatting in git-fmt --- src/bin/git-fmt.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/git-fmt.rs b/src/bin/git-fmt.rs index 984134d64de4..20a502f15538 100644 --- a/src/bin/git-fmt.rs +++ b/src/bin/git-fmt.rs @@ -97,7 +97,11 @@ fn uncommitted_files() -> Vec { cmd.arg("--exclude-standard"); let output = cmd.output().expect("Couldn't execute Git"); let stdout = String::from_utf8_lossy(&output.stdout); - stdout.lines().filter(|s| s.ends_with(".rs")).map(|s| s.to_owned()).collect() + stdout + .lines() + .filter(|s| s.ends_with(".rs")) + .map(|s| s.to_owned()) + .collect() } fn check_uncommitted() {