Skip to content

Commit

Permalink
Use default style for DEBUG, dropping termcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Jan 2, 2024
1 parent d2c7ff9 commit 743d612
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@ toml = "0.8.6"
clap = { version = "4.1.4", features = ["derive"] }
strum = { version = "0.25.0", features = ["derive"] }

[dependencies.termcolor]
optional = true
version = "1.0"

[features]
debug = ["termcolor"]
debug = []
vendored-openssl = ["cargo/vendored-openssl"]
default = []

Expand Down
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ macro_rules! verbose {
#[cfg(feature = "debug")]
macro_rules! debug {
($config: expr, $message: expr) => (
$config.shell().status_with_color("DEBUG", $message, ::termcolor::Color::White)?
$config.shell().status_with_color("DEBUG", $message, &Default::default())?
);
($config: expr, $($arg: tt)*) => (
$config.shell().status_with_color("DEBUG", format!($($arg)*), ::termcolor::Color::White)?
$config.shell().status_with_color("DEBUG", format!($($arg)*), &Default::default())?
);
}

Expand Down

0 comments on commit 743d612

Please sign in to comment.