Skip to content

Commit

Permalink
Rollup merge of #129510 - GrigorenkoPV:fix-elided-named-lifetimes, r=…
Browse files Browse the repository at this point in the history
…cjgillot

Fix `elided_named_lifetimes` in code

rust-lang/rust#129207 (comment)

r? cjgillot
  • Loading branch information
matthiaskrgr authored Aug 24, 2024
2 parents 89ad733 + 3c4367a commit 8b8a3c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/unused_io_amount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 8b8a3c9

Please sign in to comment.