diff options
| author | Eric Holk <ericholk@microsoft.com> | 2023-12-04 16:46:45 -0800 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2023-12-04 16:46:45 -0800 |
| commit | 5f191ce9b9fc83e9b5295af8302f7dc661d8240d (patch) | |
| tree | 637ed2cfa668ab995f727bcb633baf937b88d22b | |
| parent | 594a5f18a7a77b5a76dfeae324c967575bede80b (diff) | |
| download | rust-5f191ce9b9fc83e9b5295af8302f7dc661d8240d.tar.gz rust-5f191ce9b9fc83e9b5295af8302f7dc661d8240d.zip | |
Fix build
| -rw-r--r-- | clippy_lints/src/doc/needless_doctest_main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/doc/needless_doctest_main.rs b/clippy_lints/src/doc/needless_doctest_main.rs index 8079129f782..640d4a069ec 100644 --- a/clippy_lints/src/doc/needless_doctest_main.rs +++ b/clippy_lints/src/doc/needless_doctest_main.rs @@ -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, |
