diff --git a/src/fixed/kdtree.rs b/src/fixed/kdtree.rs index e090adc..1804678 100644 --- a/src/fixed/kdtree.rs +++ b/src/fixed/kdtree.rs @@ -122,7 +122,10 @@ pub(crate) struct LeafNode< const B: usize, IDX, > { - #[cfg_attr(feature = "serialize", serde(with = "array_of_arrays"))] + #[cfg_attr( + feature = "serialize", + serde(with = "crate::custom_serde::array_of_arrays") + )] #[cfg_attr( feature = "serialize", serde(bound( @@ -133,7 +136,7 @@ pub(crate) struct LeafNode< // TODO: Refactor content_points to be [[A; B]; K] to see if this helps vectorisation pub(crate) content_points: [[A; K]; B], - #[cfg_attr(feature = "serialize", serde(with = "array"))] + #[cfg_attr(feature = "serialize", serde(with = "crate::custom_serde::array"))] #[cfg_attr( feature = "serialize", serde(bound( diff --git a/src/float/kdtree.rs b/src/float/kdtree.rs index b717f00..cfb6f11 100644 --- a/src/float/kdtree.rs +++ b/src/float/kdtree.rs @@ -82,7 +82,10 @@ pub struct StemNode { )] #[derive(Clone, Debug, PartialEq)] pub struct LeafNode { - #[cfg_attr(feature = "serialize", serde(with = "array_of_arrays"))] + #[cfg_attr( + feature = "serialize", + serde(with = "crate::custom_serde::array_of_arrays") + )] #[cfg_attr( feature = "serialize", serde(bound(serialize = "A: Serialize", deserialize = "A: Deserialize<'de>")) @@ -90,7 +93,7 @@ pub struct LeafNode { - #[cfg_attr(feature = "serialize", serde(with = "array_of_arrays"))] + #[cfg_attr( + feature = "serialize", + serde(with = "crate::custom_serde::array_of_arrays") + )] #[cfg_attr( feature = "serialize", serde(bound(serialize = "A: Serialize", deserialize = "A: Deserialize<'de>")) )] pub content_points: [[A; B]; K], - #[cfg_attr(feature = "serialize", serde(with = "array"))] + #[cfg_attr(feature = "serialize", serde(with = "crate::custom_serde::array"))] #[cfg_attr( feature = "serialize", serde(bound(