From 12e3b4c70b5ef23b2fdfc197296d483680e125f9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 8 Feb 2019 14:49:43 +0300 Subject: reformat the world --- crates/tools/src/bin/pre-commit.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'crates/tools/src/bin') diff --git a/crates/tools/src/bin/pre-commit.rs b/crates/tools/src/bin/pre-commit.rs index e00bd0d3d..ea18c0863 100644 --- a/crates/tools/src/bin/pre-commit.rs +++ b/crates/tools/src/bin/pre-commit.rs @@ -19,19 +19,10 @@ fn update_staged() -> Result<()> { .current_dir(&root) .output()?; if !output.status.success() { - bail!( - "`git diff --diff-filter=MAR --name-only --cached` exited with {}", - output.status - ); + bail!("`git diff --diff-filter=MAR --name-only --cached` exited with {}", output.status); } for line in String::from_utf8(output.stdout)?.lines() { - run( - &format!( - "git update-index --add {}", - root.join(line).to_string_lossy() - ), - ".", - )?; + run(&format!("git update-index --add {}", root.join(line).to_string_lossy()), ".")?; } Ok(()) } -- cgit v1.2.3