From e2fa0e37c5adf33761949d570141fbd4ae30f40e Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Tue, 16 Jul 2024 13:08:48 +0200 Subject: [PATCH] Move lint suppression to library level New version of Rust complains about README.md included docs but since this library is about usage in tests these examples are perfectly fine. Signed-off-by: Wiktor Kwapisiewicz --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a66e84e..ae595f7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,8 @@ #![doc = include_str!("../README.md")] #![deny(missing_debug_implementations)] #![deny(missing_docs)] +// the docs illustrate the usage in test functions +#![allow(clippy::test_attr_in_doctest)] /// Error with a stacktrace /// @@ -21,7 +23,6 @@ impl From for TestError { } } -#[allow(clippy::test_attr_in_doctest)] // the docs illustrate the usage in test functions /// Unit test result /// /// This type allows panicking when encountering any type of