From 60f5f80a853990a7ecbee9b92aed6656c8a3aea2 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Thu, 21 Nov 2024 23:14:54 +0100 Subject: [PATCH] use cfg_attr(doc) see https://github.com/rust-lang/rust-clippy/pull/13625 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 5e4a4ea..547a957 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,7 @@ #![doc = concat!("[examples/custom_emitter.rs]: ", blob_url_prefix!(), "examples/custom_emitter.rs")] #![doc = concat!("[examples/callback_emitter.rs]: ", blob_url_prefix!(), "examples/callback_emitter.rs")] #![doc = concat!("[examples/scraper.rs]: ", blob_url_prefix!(), "examples/scraper.rs")] -#![doc = include_str!("../README.md")] +#![cfg_attr(doc, doc = include_str!("../README.md"))] // #![warn(clippy::all)] #![warn(