Skip to content

Commit e18ca62

Browse files
committed
Address review comments
- Make `tracing` mandatory - Group crate-public fields together
1 parent dde1a11 commit e18ca62

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tracing-subscriber/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ keywords = ["logging", "tracing", "metrics", "subscriber"]
2424
[features]
2525

2626
default = ["env-filter", "smallvec", "fmt", "ansi", "chrono", "tracing-log", "json"]
27-
env-filter = ["matchers", "regex", "lazy_static", "tracing"]
27+
env-filter = ["matchers", "regex", "lazy_static"]
2828
fmt = ["registry"]
2929
ansi = ["fmt", "ansi_term"]
3030
registry = ["sharded-slab", "thread_local"]
3131
json = ["tracing-serde", "serde", "serde_json"]
3232

3333
[dependencies]
3434
tracing-core = { path = "../tracing-core", version = "0.2" }
35+
tracing = { path = "../tracing", version = "0.2" }
3536

3637
# only required by the filter feature
37-
tracing = { optional = true, path = "../tracing", version = "0.2" }
3838
matchers = { optional = true, version = "0.0.1" }
3939
regex = { optional = true, version = "1", default-features = false, features = ["std"] }
4040
smallvec = { optional = true, version = "1" }

tracing-subscriber/src/filter/env/directive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ use tracing_core::{span, Level, Metadata};
99
// TODO(eliza): add a builder for programmatically constructing directives?
1010
#[derive(Debug, Eq, PartialEq)]
1111
pub struct Directive {
12-
pub(crate) target: Option<String>,
1312
in_span: Option<String>,
1413
fields: FilterVec<field::Match>,
14+
pub(crate) target: Option<String>,
1515
pub(crate) level: LevelFilter,
1616
}
1717

0 commit comments

Comments
 (0)