From 8d1fa19331aedf9d481eafc5e4f2c072f135c096 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 10 Feb 2023 18:33:22 +0800 Subject: [PATCH] Remove usage of all() --- src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9ac564bb..a6852433 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -166,7 +166,8 @@ const MAX_USIZE_INT: INT = INT::MAX; const MAX_USIZE_INT: INT = usize::MAX as INT; /// The maximum integer that can fit into a [`usize`]. -#[cfg(all(feature = "only_i32", target_pointer_width = "32"))] +#[cfg(feature = "only_i32")] +#[cfg(target_pointer_width = "32")] const MAX_USIZE_INT: INT = INT::MAX; /// Number of bits in [`INT`]. @@ -315,7 +316,8 @@ pub type OptimizationLevel = (); #[cfg(feature = "internals")] pub use types::dynamic::{AccessMode, DynamicReadLock, DynamicWriteLock, Variant}; -#[cfg(all(feature = "internals", not(feature = "no_float")))] +#[cfg(feature = "internals")] +#[cfg(not(feature = "no_float"))] pub use types::FloatWrapper; #[cfg(feature = "internals")]