refactor (xtask): Apply Clippy suggested changes

This commit is contained in:
Liam 2024-10-25 07:31:44 -07:00
parent d392c985f2
commit 142cfa68df
No known key found for this signature in database

View File

@ -24,7 +24,7 @@ pub fn userguide() -> Result<String, DynError> {
#[cfg(debug_assertions)]
println!(" Directory: {}", entry.name);
if entry.name != "root".to_string() {
if entry.name != "root" {
md.push_str(&format!("\n### {}\n\n", entry.name));
}
@ -36,8 +36,7 @@ pub fn userguide() -> Result<String, DynError> {
current_dir
));
} */ // Commenting this for now, might be a good idea later
} else {
if !entry.description.is_empty() {
} else if !entry.description.is_empty() {
#[cfg(debug_assertions)]
println!(" Entry: {}", entry.name);
#[cfg(debug_assertions)]
@ -49,7 +48,6 @@ pub fn userguide() -> Result<String, DynError> {
} */ // https://github.com/ChrisTitusTech/linutil/pull/753
}
}
}
Ok(md)
}