From e2625d2b3c362af538cfb573cce80062d9e83c9f Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 8 Dec 2023 00:43:27 +0900 Subject: [PATCH] Ignore clippy::test_attr_in_doctest lint ``` error: unit tests in doctest are not executed --> futures-test/src/lib.rs:77:5 | 77 | /// #[test] | _____^ 78 | | /// fn my_test() { | |______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest = note: `-D clippy::test-attr-in-doctest` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::test_attr_in_doctest)]` ``` --- futures-test/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/futures-test/src/lib.rs b/futures-test/src/lib.rs index 49f834846..91f5273f8 100644 --- a/futures-test/src/lib.rs +++ b/futures-test/src/lib.rs @@ -14,6 +14,7 @@ allow(dead_code, unused_assignments, unused_variables) ) ))] +#![allow(clippy::test_attr_in_doctest)] #[cfg(not(feature = "std"))] compile_error!(