Fix build
This commit is contained in:
parent
ac4d0f240f
commit
2c8dbd959f
@ -69,7 +69,7 @@ pub fn check(
|
|||||||
if !ignore {
|
if !ignore {
|
||||||
get_test_spans(&item, &mut test_attr_spans);
|
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 {
|
let returns_nothing = match &sig.decl.output {
|
||||||
FnRetTy::Default(..) => true,
|
FnRetTy::Default(..) => true,
|
||||||
FnRetTy::Ty(ty) if ty.kind.is_unit() => true,
|
FnRetTy::Ty(ty) if ty.kind.is_unit() => true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user