From 95b791a4fedd821750e3af15d639f161640ac3e9 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Tue, 25 Oct 2022 19:23:56 -0400 Subject: [PATCH] Patch clippy for compatibility with change --- src/tools/clippy/clippy_lints/src/unused_io_amount.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/clippy/clippy_lints/src/unused_io_amount.rs b/src/tools/clippy/clippy_lints/src/unused_io_amount.rs index 8bcdff66331d1..02fe2716a4417 100644 --- a/src/tools/clippy/clippy_lints/src/unused_io_amount.rs +++ b/src/tools/clippy/clippy_lints/src/unused_io_amount.rs @@ -78,7 +78,7 @@ impl<'tcx> LateLintPass<'tcx> for UnusedIoAmount { /// If `expr` is an (e).await, return the inner expression "e" that's being /// waited on. Otherwise return None. -fn try_remove_await<'a>(expr: &'a hir::Expr<'a>) -> Option<&hir::Expr<'a>> { +fn try_remove_await<'a>(expr: &'a hir::Expr<'a>) -> Option<&'a hir::Expr<'a>> { if let hir::ExprKind::Match(expr, _, hir::MatchSource::AwaitDesugar) = expr.kind { if let hir::ExprKind::Call(func, [ref arg_0, ..]) = expr.kind { if matches!(