Skip to content

Commit 62f7337

Browse files
Make some matches exhaustive to avoid bugs, fix tools
1 parent 1512d37 commit 62f7337

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_utils/src/ast_utils.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,8 @@ pub fn eq_fn_sig(l: &FnSig, r: &FnSig) -> bool {
566566
fn eq_opt_coroutine_kind(l: Option<CoroutineKind>, r: Option<CoroutineKind>) -> bool {
567567
match (l, r) {
568568
(Some(CoroutineKind::Async { .. }), Some(CoroutineKind::Async { .. }))
569-
| (Some(CoroutineKind::Gen { .. }), Some(CoroutineKind::Gen { .. })) => true,
569+
| (Some(CoroutineKind::Gen { .. }), Some(CoroutineKind::Gen { .. }))
570+
| (Some(CoroutineKind::AsyncGen { .. }), Some(CoroutineKind::AsyncGen { .. })) => true,
570571
(None, None) => true,
571572
_ => false,
572573
}

0 commit comments

Comments
 (0)