From 5a1fca980de65591baab6b106d3d65d84fed96b7 Mon Sep 17 00:00:00 2001 From: Candifloss Date: Mon, 25 Nov 2024 07:55:17 +0000 Subject: [PATCH] Delete src/old/error.rs --- src/old/error.rs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/old/error.rs diff --git a/src/old/error.rs b/src/old/error.rs deleted file mode 100644 index 38681df..0000000 --- a/src/old/error.rs +++ /dev/null @@ -1,17 +0,0 @@ -use colored::{ColoredString, Colorize}; - -pub fn err(args: Vec) -> 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), - } -}