mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-27 13:01:29 +00:00
clippy
This commit is contained in:
parent
6b58982ee5
commit
2e78274bdb
@ -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
|
||||
|
||||
|
@ -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<'_> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user