Skip to content

Commit a547856

Browse files
committed
Update matchers version
This bumps regex-automata
1 parent dfc2c8b commit a547856

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tracing-subscriber/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tracing-core = { path = "../tracing-core", version = "0.2", default-features = f
4545

4646
# only required by the `env-filter` feature
4747
tracing = { optional = true, path = "../tracing", version = "0.2", default-features = false }
48-
matchers = { optional = true, version = "0.1.0" }
48+
matchers = { optional = true, version = "0.2.0" }
4949
regex = { optional = true, version = "1.6.0", default-features = false, features = ["std", "unicode-case", "unicode-perl"] }
5050
smallvec = { optional = true, version = "1.9.0" }
5151
once_cell = { optional = true, version = "1.13.0" }

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl ValueMatch {
234234
/// This returns an error if the string didn't contain a valid `bool`,
235235
/// `u64`, `i64`, or `f64` literal, and couldn't be parsed as a regular
236236
/// expression.
237-
fn parse_regex(s: &str) -> Result<Self, matchers::Error> {
237+
fn parse_regex(s: &str) -> Result<Self, matchers::BuildError> {
238238
s.parse::<bool>()
239239
.map(ValueMatch::Bool)
240240
.or_else(|_| s.parse::<u64>().map(ValueMatch::U64))
@@ -279,7 +279,7 @@ impl fmt::Display for ValueMatch {
279279
// === impl MatchPattern ===
280280

281281
impl FromStr for MatchPattern {
282-
type Err = matchers::Error;
282+
type Err = matchers::BuildError;
283283
fn from_str(s: &str) -> Result<Self, Self::Err> {
284284
let matcher = Pattern::new_anchored(s)?;
285285
Ok(Self {

0 commit comments

Comments
 (0)