Format source codes
This commit is contained in:
parent
1de786a79a
commit
57466dc687
@ -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 {
|
||||
|
@ -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 {
|
||||
" "
|
||||
|
Loading…
Reference in New Issue
Block a user