From 9d5c24e4a2bc4b90601700328ea3683d81e4d117 Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Wed, 13 Jan 2021 19:24:28 -0800 Subject: [PATCH] tracing: rename the last dispatch -> dispatcher 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`? ``` --- tracing/src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracing/src/macros.rs b/tracing/src/macros.rs index f69064ed8b..3c614cea13 100644 --- a/tracing/src/macros.rs +++ b/tracing/src/macros.rs @@ -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