From 619ea8a5612f260ac104736d74ee9a224915a3db Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 12 Jan 2021 16:35:41 +0100 Subject: [PATCH] Make code compile again without serde --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3e58fd2..b6b6707 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -624,10 +624,11 @@ struct ZeroNode { /// The nearest neighbors on this layer /// /// This is always kept in sorted order (near to far). - #[serde(with = "BigArray")] + #[cfg_attr(feature = "serde", serde(with = "BigArray"))] nearest: [PointId; M * 2], } +#[cfg(feature = "serde-big-array")] big_array! { BigArray; } impl Default for ZeroNode {