Skip to content

Commit

Permalink
tracing: rename the last dispatch -> dispatcher (#1191)
Browse files Browse the repository at this point in the history
It was renamed everywhere in #1015, but until #1190 it wasn't possible
to enter this macro branch. Now it fails with the following:

```
   Compiling tracing v0.2.0 (/Users/ivan/projects/tracing/tracing)
error[E0433]: failed to resolve: maybe a missing crate `dispatcher`?
    --> /Users/ivan/projects/tracing/tracing/src/macros.rs:2351:21
     |
2351 |           if !$crate::dispatcher::has_been_set() {
     |                       ^^^^^^^^^^ maybe a missing crate `dispatcher`?
```

Co-authored-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
bobrik and hawkw authored Jan 27, 2021
1 parent 20daf7c commit b82f60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2348,7 +2348,7 @@ macro_rules! if_log_enabled {
$crate::if_log_enabled! { $if_log else {} }
};
($if_log:block else $else_block:block) => {
if !$crate::dispatcher::has_been_set() {
if !$crate::dispatch::has_been_set() {
$if_log
} else {
$else_block
Expand Down

0 comments on commit b82f60f

Please sign in to comment.