Resolve nightly clippy warning in test_field_cfg

This commit is contained in:
Alex Gaynor 2023-07-11 05:55:57 -04:00 committed by GitHub
parent db960e5fb4
commit f39eb9e229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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,
}