From 0b3b6bd2e04cde00741dff318faf1a70b7f84222 Mon Sep 17 00:00:00 2001 From: Ted Driggs Date: Wed, 11 Sep 2024 12:36:45 -0700 Subject: [PATCH] Allow cfg(compiletests) --- derive_builder/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/derive_builder/Cargo.toml b/derive_builder/Cargo.toml index 5a52747..858b6a4 100644 --- a/derive_builder/Cargo.toml +++ b/derive_builder/Cargo.toml @@ -35,3 +35,6 @@ serde_json = "1" [target.'cfg(compiletests)'.dev-dependencies] trybuild = "1.0.38" + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(compiletests)'] }