Skip to content

Commit

Permalink
subscriber: fix filter::ParseError accidentally being renamed (toki…
Browse files Browse the repository at this point in the history
…o-rs#1558)

I accidentally renamed this type in PR tokio-rs#1550 after getting confused by a
renaming import that I thought was publicly re-exported, but it wasn't
actually..sorry about that!

This commit renames (or...un-renames?) the type. Whoopsie!

Fixes tokio-rs#1557
  • Loading branch information
hawkw authored and kaffarell committed May 22, 2024
1 parent ce74266 commit ea501e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tracing-subscriber/src/filter/env/directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ impl Directive {
.unwrap()
});

let caps = DIRECTIVE_RE
.captures(from)
.ok_or_else(DirectiveParseError::new)?;
let caps = DIRECTIVE_RE.captures(from).ok_or_else(ParseError::new)?;

if let Some(level) = caps
.name("global_level")
Expand Down
2 changes: 1 addition & 1 deletion tracing-subscriber/src/filter/env/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub struct FromEnvError {

#[derive(Debug)]
enum ErrorKind {
Parse(DirectiveParseError),
Parse(ParseError),
Env(env::VarError),
}

Expand Down

0 comments on commit ea501e5

Please sign in to comment.