code review comments

This commit is contained in:
Pat Hickey
2020-06-03 15:35:53 -07:00
parent 6910c1e03d
commit 0fb374947a
4 changed files with 5 additions and 6 deletions

2
Cargo.lock generated
View File

@@ -2657,7 +2657,7 @@ dependencies = [
name = "wiggle-test" name = "wiggle-test"
version = "0.17.0" version = "0.17.0"
dependencies = [ dependencies = [
"env_logger 0.7.1", "env_logger",
"proptest", "proptest",
"thiserror", "thiserror",
"tracing", "tracing",

View File

@@ -15,9 +15,8 @@ mod borrow;
mod error; mod error;
mod guest_type; mod guest_type;
mod region; mod region;
pub mod tracing {
pub use tracing::*; pub extern crate tracing;
}
pub use borrow::BorrowChecker; pub use borrow::BorrowChecker;
use borrow::BorrowHandle; use borrow::BorrowHandle;

View File

@@ -18,7 +18,7 @@ wiggle = { path = "..", features = ["tracing_log"] }
thiserror = "1.0" thiserror = "1.0"
tracing = "0.1.14" tracing = "0.1.14"
tracing-subscriber = "0.2.4" tracing-subscriber = "0.2.4"
env_logger="0.7" env_logger = "0.7"
[badges] [badges]

View File

@@ -71,7 +71,7 @@ fn main() {
if std::env::var("RUST_LOG").is_err() { if std::env::var("RUST_LOG").is_err() {
// with no RUST_LOG env variable: use the tracing subscriber. // with no RUST_LOG env variable: use the tracing subscriber.
let subscriber = tracing_subscriber::fmt() let subscriber = tracing_subscriber::fmt()
// all spans/events with a level higher than TRACE (e.g, debug, info, warn, etc.) // all spans/events with a level equal to or higher than TRACE (e.g, trace, debug, info, warn, etc.)
// will be written to stdout. // will be written to stdout.
.with_max_level(tracing::Level::TRACE) .with_max_level(tracing::Level::TRACE)
// builds the subscriber. // builds the subscriber.