diff --git a/clippy.toml b/clippy.toml index f5522e6783..3c34d529ad 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1 +1,5 @@ too-many-lines-threshold = 200 +await-holding-invalid-types = [ + { path = "tracing::span::Entered", reason = "`Entered` is not aware when a function is suspended: https://docs.rs/tracing/latest/tracing/struct.Span.html#in-asynchronous-code" }, + { path = "tracing::span::EnteredSpan", reason = "`EnteredSpan` is not aware when a function is suspended: https://docs.rs/tracing/latest/tracing/struct.Span.html#in-asynchronous-code" }, +]