From 57466dc68799f4c28bae5e7531555334052c3d65 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Thu, 6 Jul 2017 01:03:07 +0900 Subject: [PATCH] Format source codes --- src/bin/cargo-fmt.rs | 14 +++++++------- src/expr.rs | 4 +--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/bin/cargo-fmt.rs b/src/bin/cargo-fmt.rs index b4a1b3d5172..95ac1a25bb9 100644 --- a/src/bin/cargo-fmt.rs +++ b/src/bin/cargo-fmt.rs @@ -142,14 +142,14 @@ fn get_fmt_args() -> Vec { #[derive(Debug)] enum TargetKind { - Lib, // dylib, staticlib, lib - Bin, // bin - Example, // example file - Test, // test file - Bench, // bench file + Lib, // dylib, staticlib, lib + Bin, // bin + Example, // example file + Test, // test file + Bench, // bench file CustomBuild, // build script - ProcMacro, // a proc macro implementation - Other, // plugin,... + ProcMacro, // a proc macro implementation + Other, // plugin,... } impl TargetKind { diff --git a/src/expr.rs b/src/expr.rs index 1326d3c41b1..971bdc21aaa 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1298,9 +1298,7 @@ fn rewrite_cond( label_string, self.keyword, between_kwd_cond_comment.as_ref().map_or( - if pat_expr_string.is_empty() || - pat_expr_string.starts_with('\n') - { + if pat_expr_string.is_empty() || pat_expr_string.starts_with('\n') { "" } else { " "