From 0715a7f590ced5b8f387ffc62eddb759a761158a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Mon, 24 Jun 2024 17:23:45 +0200 Subject: [PATCH] allow doc_cfg cfg check --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 7abe7d8..ca564ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,3 +33,7 @@ version-sync = "0.9.1" [package.metadata.docs.rs] all-features = true targets = [] + +[lints.rust] +# allow #[cfg_attr(doc_cfg, doc(cfg(...)))] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_cfg)'] }