From a1a2e324e64b0232e25070c802bc2fa04319dd9e Mon Sep 17 00:00:00 2001 From: charles-r-earp Date: Tue, 26 Mar 2024 17:47:49 -0700 Subject: [PATCH] docs fix doc_cfg for Scalar trait --- krnl-core/src/scalar.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/krnl-core/src/scalar.rs b/krnl-core/src/scalar.rs index 96269ab..8ac006b 100644 --- a/krnl-core/src/scalar.rs +++ b/krnl-core/src/scalar.rs @@ -463,8 +463,8 @@ pub trait Scalar: fn cast(self) -> T; } -#[cfg_attr(doc_cfg, doc(cfg(all())))] #[cfg(all(not(target_arch = "spirv"), not(feature = "serde")))] +#[cfg_attr(doc_cfg, doc(cfg(all())))] /// Base trait for numerical types. pub trait Scalar: Default @@ -491,8 +491,8 @@ pub trait Scalar: fn cast(self) -> T; } -#[cfg_attr(doc_cfg, doc(cfg(all())))] #[cfg(all(not(target_arch = "spirv"), feature = "serde"))] +#[cfg_attr(doc_cfg, doc(cfg(all())))] /// Base trait for numerical types. pub trait Scalar: Default