Format source codes

This commit is contained in:
topecongiro 2017-07-06 01:03:07 +09:00
parent 1de786a79a
commit 57466dc687
2 changed files with 8 additions and 10 deletions

View File

@ -142,14 +142,14 @@ fn get_fmt_args() -> Vec<String> {
#[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 {

View File

@ -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 {
" "