From df43e52b737caf5d035fd2383eb3217ec851bb74 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 9 May 2024 22:21:19 +1000 Subject: [PATCH 1/2] Fix pipeline doc: Warn on unexpected cfgs instead of error --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 437bce7..ede0166 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,6 +29,8 @@ //! ---------|------ // TODO: Kill rustfmt on this section, `#![rustfmt::skip::attributes(cfg_attr)]` should do it, but // that's unstable +#![warn(unexpected_cfgs)] + #![cfg_attr( feature = "futures-io", doc = "[`futures-io`](crate::futures) | [`futures::io::AsyncBufRead`](futures_io::AsyncBufRead), [`futures::io::AsyncWrite`](futures_io::AsyncWrite)" From 60923cb2482c10c3444048615fe6c13c4d5354f0 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 9 May 2024 22:35:31 +1000 Subject: [PATCH 2/2] Allow unexpected cfg and fix fmt --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ede0166..40f84a4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,8 +29,7 @@ //! ---------|------ // TODO: Kill rustfmt on this section, `#![rustfmt::skip::attributes(cfg_attr)]` should do it, but // that's unstable -#![warn(unexpected_cfgs)] - +#![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)"