Skip to content

Commit

Permalink
Add comment with issue to macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon089 committed Apr 10, 2024
1 parent d6dd233 commit f8951cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reqwest-retry/src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ use reqwest_middleware::{Error, Middleware, Next, Result};
use retry_policies::RetryPolicy;

#[doc(hidden)]
// We need this macro because tracing expects the level to be const:
// https://github.com/tokio-rs/tracing/issues/2730
macro_rules! log_retry {
($level:expr, $($args:tt)*) => {{
match $level {
Expand Down

0 comments on commit f8951cc

Please sign in to comment.