Delete src/old/error.rs

This commit is contained in:
Candifloss 2024-11-25 07:55:17 +00:00
parent 7257faf85d
commit 5a1fca980d

View File

@ -1,17 +0,0 @@
use colored::{ColoredString, Colorize};
pub fn err(args: Vec<String>) -> String {
if args.len() > 2 {
args[2].clone() // Error status
} else {
"none".to_string()
}
}
pub fn err_indicator(err: String) -> ColoredString {
let angle = "";
match err.as_str() {
"0" => angle.truecolor(0, 255, 180),
_ => angle.truecolor(255, 53, 94),
}
}