diff --git a/Cargo.toml b/Cargo.toml index 8e126ae..a9f39f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ readme = "README.md" [dependencies] tracing-error = "0.2.0" tracing-core = "0.1.21" -owo-colors = "1.2.0" +owo-colors = "3.2.0" once_cell = "1.4.1" [dev-dependencies] diff --git a/tests/data/theme_control.txt b/tests/data/theme_control.txt index 0b97908..96d8830 100644 --- a/tests/data/theme_control.txt +++ b/tests/data/theme_control.txt @@ -4,6 +4,6 @@ at tests/themes.rs:42 40 │ use tracing_subscriber::{prelude::*, registry::Registry}; 41 │ - 42 > #[instrument] + 42 > #[instrument] 43 │ fn test_capture(x: u8) -> SpanTrace { - 44 │ if x == 42 { \ No newline at end of file + 44 │ #[allow(clippy::if_same_then_else)] \ No newline at end of file diff --git a/tests/themes.rs b/tests/themes.rs index 994dde7..379aa25 100644 --- a/tests/themes.rs +++ b/tests/themes.rs @@ -40,8 +40,8 @@ use tracing_error::SpanTrace; use tracing_subscriber::{prelude::*, registry::Registry}; #[instrument] -#[allow(clippy::clippy::if_same_then_else)] fn test_capture(x: u8) -> SpanTrace { + #[allow(clippy::if_same_then_else)] if x == 42 { SpanTrace::capture() } else {