From b93622b3169c1f1998a04cca9b3a50070eafc82b Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Wed, 31 Jan 2024 07:29:47 -0600 Subject: [PATCH] tell clippy to not complain about the tests The point of this crate is to be called early on in main so that's what the examples show. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 28ebf42..848ef67 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![allow(clippy::needless_doctest_main)] #![doc(html_root_url = "https://docs.rs/stderrlog/0.6.0")] //! A simple logger to provide semantics similar to what is expected