Skip to content

Commit

Permalink
Fix await_holding_span_guard
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Nov 19, 2024
1 parent 52b3664 commit 12fd583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/general/await_holding_span_guard/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ const TRACING_SPAN_ENTERED_GUARD: [&str; 3] = ["tracing", "span", "EnteredSpan"]
impl LateLintPass<'_> for AwaitHoldingSpanGuard {
fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ hir::Expr<'_>) {
if let hir::ExprKind::Closure(hir::Closure {
def_id,
kind:
hir::ClosureKind::Coroutine(hir::CoroutineKind::Desugared(
hir::CoroutineDesugaring::Async,
_,
)),
def_id,
..
}) = expr.kind
{
Expand Down

0 comments on commit 12fd583

Please sign in to comment.