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