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)'] }