We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89ad733 + 3c4367a commit 8b8a3c9Copy full SHA for 8b8a3c9
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> {
235
236
/// If `expr` is an (e).await, return the inner expression "e" that's being
237
/// waited on. Otherwise return None.
238
-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> {
239
if let ExprKind::Match(expr, _, hir::MatchSource::AwaitDesugar) = expr.kind {
240
if let ExprKind::Call(func, [ref arg_0, ..]) = expr.kind {
241
if matches!(
0 commit comments