Skip to content

Commit 8b8a3c9

Browse files
authored
Rollup merge of rust-lang#129510 - GrigorenkoPV:fix-elided-named-lifetimes, r=cjgillot
Fix `elided_named_lifetimes` in code rust-lang#129207 (comment) r? cjgillot
2 parents 89ad733 + 3c4367a commit 8b8a3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/unused_io_amount.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ fn unpack_match<'a>(mut expr: &'a hir::Expr<'a>) -> &'a hir::Expr<'a> {
235235

236236
/// If `expr` is an (e).await, return the inner expression "e" that's being
237237
/// waited on. Otherwise return None.
238-
fn unpack_await<'a>(expr: &'a hir::Expr<'a>) -> &hir::Expr<'a> {
238+
fn unpack_await<'a>(expr: &'a hir::Expr<'a>) -> &'a hir::Expr<'a> {
239239
if let ExprKind::Match(expr, _, hir::MatchSource::AwaitDesugar) = expr.kind {
240240
if let ExprKind::Call(func, [ref arg_0, ..]) = expr.kind {
241241
if matches!(

0 commit comments

Comments
 (0)