remove _colored_ crate

This commit is contained in:
aglkm
2024-07-26 16:33:36 +03:00
parent 9a51edac03
commit 78079c208a
3 changed files with 1 additions and 14 deletions

11
Cargo.lock generated
View File

@@ -289,16 +289,6 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422"
[[package]]
name = "colored"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cbf2150cce219b664a8a70df7a1f933836724b503f8a413af9365b4dcc4d90b8"
dependencies = [
"lazy_static",
"windows-sys 0.48.0",
]
[[package]]
name = "config"
version = "0.14.0"
@@ -818,7 +808,6 @@ version = "0.1.5"
dependencies = [
"anyhow",
"chrono",
"colored",
"config",
"either",
"env_logger",

View File

@@ -11,7 +11,6 @@ serde = {version = "1.0.198", features = ["derive"]}
serde_json = "1.0.111"
num-format = "0.4.4"
fs_extra = "1.3.0"
colored = "2.1.0"
humantime = "2.1.0"
chrono = "0.4.37"
futures = "0.3.30"

View File

@@ -3,7 +3,6 @@ use serde_json::Value;
use std::sync::{Arc, Mutex};
use num_format::{Locale, ToFormattedString};
use fs_extra::dir::get_size;
use colored::Colorize;
use humantime::format_duration;
use std::time::Duration;
use chrono::{Utc, DateTime};
@@ -40,7 +39,7 @@ lazy_static! {
"grin_dir" => cfg.grin_dir = value,
"coingecko_api" => cfg.coingecko_api = value,
"public_api" => cfg.public_api = value,
_ => println!("{} Unknown config setting '{}'.", "[ ERROR ]".red(), name),
_ => error!("unknown config setting '{}'.", name),
}
}