This commit is contained in:
Jane Lusby 2020-05-06 14:54:27 -07:00
parent 6b58982ee5
commit 2e78274bdb
2 changed files with 8 additions and 1 deletions

View File

@ -3,6 +3,11 @@ name = "color-spantrace"
version = "0.1.0"
authors = ["Jane Lusby <jlusby@yaah.dev>"]
edition = "2018"
license = "MIT OR Apache-2.0"
description = "A pretty printer for tracing_error::SpanTrace based on color-backtrace"
repository = "https://github.com/yaahc/color-spantrace"
documentation = "https://docs.rs/color-spantrace"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,3 +1,4 @@
#![doc(html_root_url = "https://docs.rs/color-spantrace/0.1.0")]
use ansi_term::{Color::*, Style};
use std::env;
use std::fmt;
@ -49,7 +50,8 @@ fn enabled() -> bool {
},
};
ENABLED.store(enabled as usize + 1, SeqCst);
return enabled;
enabled
}
impl Frame<'_> {