ksud: fmt & fix build
This commit is contained in:
@@ -661,10 +661,7 @@ pub fn run() -> Result<()> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Commands::Umount { command } => match command {
|
Commands::Umount { command } => match command {
|
||||||
Umount::Add {
|
Umount::Add { path, flags } => crate::umount_manager::add_umount_path(&path, flags),
|
||||||
path,
|
|
||||||
flags,
|
|
||||||
} => crate::umount_manager::add_umount_path(&path, flags),
|
|
||||||
Umount::Remove { path } => crate::umount_manager::remove_umount_path(&path),
|
Umount::Remove { path } => crate::umount_manager::remove_umount_path(&path),
|
||||||
Umount::List => crate::umount_manager::list_umount_paths(),
|
Umount::List => crate::umount_manager::list_umount_paths(),
|
||||||
Umount::ClearCustom => crate::umount_manager::clear_custom_paths(),
|
Umount::ClearCustom => crate::umount_manager::clear_custom_paths(),
|
||||||
|
|||||||
@@ -268,15 +268,12 @@ pub fn list_umount_paths() -> Result<()> {
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
println!(
|
println!("{:<30} {:<8} {:<10}", "Path", "Flags", "Default");
|
||||||
"{:<30} {:<12} {:<8} {:<10}",
|
|
||||||
"Path", "CheckMnt", "Flags", "Default"
|
|
||||||
);
|
|
||||||
println!("{}", "=".repeat(60));
|
println!("{}", "=".repeat(60));
|
||||||
|
|
||||||
for entry in entries {
|
for entry in entries {
|
||||||
println!(
|
println!(
|
||||||
"{:<30} {:<12} {:<8} {:<10}",
|
"{:<30} {:<8} {:<10}",
|
||||||
entry.path,
|
entry.path,
|
||||||
entry.flags,
|
entry.flags,
|
||||||
if entry.is_default { "Yes" } else { "No" }
|
if entry.is_default { "Yes" } else { "No" }
|
||||||
|
|||||||
Reference in New Issue
Block a user