From e2fc801ad5a858109e1f4586692f9496881b7842 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Mon, 17 Feb 2020 13:47:42 -0500 Subject: [PATCH] needless_doctest_main: False positive for async fn Fixes #5188. --- clippy_lints/src/doc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/doc.rs b/clippy_lints/src/doc.rs index 4a7d2a8b640e..2968daa54b41 100644 --- a/clippy_lints/src/doc.rs +++ b/clippy_lints/src/doc.rs @@ -424,7 +424,7 @@ fn check_doc<'a, Events: Iterator, Range, text: &str, span: Span) { if text.contains("fn main() {") && !LEAVE_MAIN_PATTERNS.iter().any(|p| text.contains(p)) {