Fix build

This commit is contained in:
Eric Holk 2023-12-04 16:46:45 -08:00
parent ac4d0f240f
commit 2c8dbd959f
No known key found for this signature in database
GPG Key ID: 8EA6B43ED4CE0911

View File

@ -69,7 +69,7 @@ pub fn check(
if !ignore {
get_test_spans(&item, &mut test_attr_spans);
}
let is_async = matches!(sig.header.coro_kind, CoroutineKind::Async { .. });
let is_async = matches!(sig.header.coro_kind, Some(CoroutineKind::Async { .. }));
let returns_nothing = match &sig.decl.output {
FnRetTy::Default(..) => true,
FnRetTy::Ty(ty) if ty.kind.is_unit() => true,