diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-23 01:12:57 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-24 19:21:32 +0300 |
| commit | 3c4367a80f391b46f47c264ac8ea919c6ceda792 (patch) | |
| tree | 6f9e4ad465f27c7903980fcfa1e81ab9efe5f3bb | |
| parent | 43e1145c80d1c2f4e159885d382659ace3a1bc5d (diff) | |
| download | rust-3c4367a80f391b46f47c264ac8ea919c6ceda792.tar.gz rust-3c4367a80f391b46f47c264ac8ea919c6ceda792.zip | |
Fix `elided_named_lifetimes` in code
| -rw-r--r-- | clippy_lints/src/unused_io_amount.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/unused_io_amount.rs b/clippy_lints/src/unused_io_amount.rs index 448946bd66d..c6ca17175e2 100644 --- a/clippy_lints/src/unused_io_amount.rs +++ b/clippy_lints/src/unused_io_amount.rs @@ -235,7 +235,7 @@ fn unpack_match<'a>(mut expr: &'a hir::Expr<'a>) -> &'a hir::Expr<'a> { /// If `expr` is an (e).await, return the inner expression "e" that's being /// waited on. Otherwise return None. -fn unpack_await<'a>(expr: &'a hir::Expr<'a>) -> &hir::Expr<'a> { +fn unpack_await<'a>(expr: &'a hir::Expr<'a>) -> &'a hir::Expr<'a> { if let ExprKind::Match(expr, _, hir::MatchSource::AwaitDesugar) = expr.kind { if let ExprKind::Call(func, [ref arg_0, ..]) = expr.kind { if matches!( |
