diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-24 22:14:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-24 22:14:15 +0200 |
| commit | 8b8a3c91af0df8b23d19af4ed88334d4df028291 (patch) | |
| tree | 9cd5b978ab29e19de6dee17d79d0696a0ad44e63 | |
| parent | 89ad7334e014639621113ad8c38727e493d5e01d (diff) | |
| parent | 3c4367a80f391b46f47c264ac8ea919c6ceda792 (diff) | |
| download | rust-8b8a3c91af0df8b23d19af4ed88334d4df028291.tar.gz rust-8b8a3c91af0df8b23d19af4ed88334d4df028291.zip | |
Rollup merge of #129510 - GrigorenkoPV:fix-elided-named-lifetimes, r=cjgillot
Fix `elided_named_lifetimes` in code https://github.com/rust-lang/rust/pull/129207#issuecomment-2308428671 r? cjgillot
| -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!( |
