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 @@ impl<'a> ControlFlow<'a> { 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 { " "