From f7095ba6d5fcaf9cbb957a9a17d36b88ba08289a Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 9 May 2024 22:40:33 +1000 Subject: [PATCH] Fix pipeline doc: Warn on unexpected cfgs instead of error (#276) * Fix pipeline doc: Warn on unexpected cfgs instead of error * Allow unexpected cfg and fix fmt --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 437bce7..40f84a4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,6 +29,7 @@ //! ---------|------ // TODO: Kill rustfmt on this section, `#![rustfmt::skip::attributes(cfg_attr)]` should do it, but // that's unstable +#![allow(unexpected_cfgs)] #![cfg_attr( feature = "futures-io", doc = "[`futures-io`](crate::futures) | [`futures::io::AsyncBufRead`](futures_io::AsyncBufRead), [`futures::io::AsyncWrite`](futures_io::AsyncWrite)"