cargo: fmt

This commit is contained in:
Muhammad Nauman Raza 2024-03-26 13:55:15 +00:00
parent 6516e2f2b8
commit d4a66fae6c
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -1,7 +1,7 @@
use anyhow::{Context, Result};
use clap::Parser;
use colored::Colorize;
use std::{fs, path, process};
use anyhow::{Context, Result};
#[derive(Parser, Debug)]
#[command(version, about, long_about = None, author)]
@ -27,7 +27,6 @@ fn vaporise() -> Result<()> {
process::exit(0);
}
for target in args.targets.iter() {
if !args.no_preserve && (target == "/" || target == "~") {
println!("{}: you're trying to delete an important directory ({})! specify '{}' if you really want to do this", "error".red().bold(), "--no-preserve".yellow(), target);