mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
refactor (xtask): Apply Clippy suggested changes
This commit is contained in:
parent
d392c985f2
commit
142cfa68df
|
@ -24,7 +24,7 @@ pub fn userguide() -> Result<String, DynError> {
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
println!(" Directory: {}", entry.name);
|
println!(" Directory: {}", entry.name);
|
||||||
|
|
||||||
if entry.name != "root".to_string() {
|
if entry.name != "root" {
|
||||||
md.push_str(&format!("\n### {}\n\n", entry.name));
|
md.push_str(&format!("\n### {}\n\n", entry.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,18 +36,16 @@ pub fn userguide() -> Result<String, DynError> {
|
||||||
current_dir
|
current_dir
|
||||||
));
|
));
|
||||||
} */ // Commenting this for now, might be a good idea later
|
} */ // Commenting this for now, might be a good idea later
|
||||||
} else {
|
} else if !entry.description.is_empty() {
|
||||||
if !entry.description.is_empty() {
|
#[cfg(debug_assertions)]
|
||||||
#[cfg(debug_assertions)]
|
println!(" Entry: {}", entry.name);
|
||||||
println!(" Entry: {}", entry.name);
|
#[cfg(debug_assertions)]
|
||||||
#[cfg(debug_assertions)]
|
println!(" Description: {}", entry.description);
|
||||||
println!(" Description: {}", entry.description);
|
|
||||||
|
|
||||||
md.push_str(&format!("- **{}**: {}\n", entry.name, entry.description));
|
md.push_str(&format!("- **{}**: {}\n", entry.name, entry.description));
|
||||||
} /* else {
|
} /* else {
|
||||||
md.push_str(&format!("- **{}**\n", entry.name));
|
md.push_str(&format!("- **{}**\n", entry.name));
|
||||||
} */ // https://github.com/ChrisTitusTech/linutil/pull/753
|
} */ // https://github.com/ChrisTitusTech/linutil/pull/753
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user