From f39eb9e229d6cfb6bd98670f8c2781cf2afbb850 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 11 Jul 2023 05:55:57 -0400 Subject: [PATCH] Resolve nightly clippy warning in test_field_cfg --- tests/test_field_cfg.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_field_cfg.rs b/tests/test_field_cfg.rs index dc84701c..bd671641 100644 --- a/tests/test_field_cfg.rs +++ b/tests/test_field_cfg.rs @@ -8,7 +8,12 @@ struct CfgClass { #[cfg(any())] pub a: u32, #[pyo3(get, set)] - #[cfg(all())] + // This is always true + #[cfg(any( + target_family = "unix", + target_family = "windows", + target_family = "wasm" + ))] pub b: u32, }