Skip to content

Commit

Permalink
fix: unused imports under miri
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Oct 10, 2023
1 parent 0ad6355 commit 0d7f941
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions color-spantrace/tests/themes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@
*/

use ansi_parser::{AnsiParser, AnsiSequence, Output};
use std::{fs, path::Path};
use tracing::instrument;
use tracing_error::ErrorLayer;
use tracing_error::SpanTrace;
use tracing_subscriber::{prelude::*, registry::Registry};

#[instrument]
fn test_capture(x: u8) -> SpanTrace {
Expand All @@ -52,6 +48,10 @@ fn test_capture(x: u8) -> SpanTrace {
#[cfg(not(miri))]
#[test]
fn test_backwards_compatibility() {
use ansi_parser::{AnsiParser, AnsiSequence, Output};
use std::{fs, path::Path};
use tracing_error::ErrorLayer;
use tracing_subscriber::{prelude::*, registry::Registry};
std::env::set_var("RUST_LIB_BACKTRACE", "full");

// This integration is ran by cargo with cwd="color-spantrace", but the string literals for
Expand Down

0 comments on commit 0d7f941

Please sign in to comment.