diff options
| author | Michael Goulet <michael@errs.io> | 2023-04-25 19:52:17 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-04-27 17:18:12 +0000 |
| commit | d4200276f2679e2f1be8286ca2b3d0c91bb81efe (patch) | |
| tree | 08f8529488fe9851f0ca57684724ece0c99833b0 /src/tools/clippy/clippy_utils | |
| parent | 6c9249f68935c789231b89c15986795dbc95511e (diff) | |
| download | rust-d4200276f2679e2f1be8286ca2b3d0c91bb81efe.tar.gz rust-d4200276f2679e2f1be8286ca2b3d0c91bb81efe.zip | |
Make clippy happy
Diffstat (limited to 'src/tools/clippy/clippy_utils')
| -rw-r--r-- | src/tools/clippy/clippy_utils/src/ast_utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_utils/src/ast_utils.rs b/src/tools/clippy/clippy_utils/src/ast_utils.rs index 1f15598db36..8cc01f1ef97 100644 --- a/src/tools/clippy/clippy_utils/src/ast_utils.rs +++ b/src/tools/clippy/clippy_utils/src/ast_utils.rs @@ -143,7 +143,7 @@ pub fn eq_expr(l: &Expr, r: &Expr) -> bool { (Paren(l), _) => eq_expr(l, r), (_, Paren(r)) => eq_expr(l, r), (Err, Err) => true, - (Try(l), Try(r)) | (Await(l), Await(r)) => eq_expr(l, r), + (Try(l), Try(r)) | (Await(l, _), Await(r, _)) => eq_expr(l, r), (Array(l), Array(r)) => over(l, r, |l, r| eq_expr(l, r)), (Tup(l), Tup(r)) => over(l, r, |l, r| eq_expr(l, r)), (Repeat(le, ls), Repeat(re, rs)) => eq_expr(le, re) && eq_expr(&ls.value, &rs.value), |
