Skip to content

Commit

Permalink
Drop a reference to the tracing crate
Browse files Browse the repository at this point in the history
This is otherwise not referenced. Remove the need to add a dependency on
`tracing` from the README.
  • Loading branch information
tamird authored and d-e-s-o committed Oct 11, 2023
1 parent 423e0c0 commit 1711560
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Unreleased
`test_case` crate), that may not have been parsable in the past
- Removed generated `test_impl` function, which could have "leaked" into
test cases (#28)
- Eliminated dependency on `tracing` crate


0.2.12
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ enabling the `log` or `trace` feature, respectively). E.g.,
```toml
[dev-dependencies]
env_logger = "*"
tracing = {version = "0.1", default-features = false}
tracing-subscriber = {version = "0.3", default-features = false, features = ["env-filter", "fmt"]}
```

Expand Down
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,11 @@ fn expand_tracing_init() -> Tokens {
}
};

let subscriber = ::tracing_subscriber::FmtSubscriber::builder()
let _ = ::tracing_subscriber::FmtSubscriber::builder()
.with_env_filter(::tracing_subscriber::EnvFilter::from_default_env())
.with_span_events(__internal_event_filter)
.with_test_writer()
.finish();
let _ = ::tracing::subscriber::set_global_default(subscriber);
.try_init();
}
}
#[cfg(not(feature = "trace"))]
Expand Down

0 comments on commit 1711560

Please sign in to comment.