Make code compile again without serde

This commit is contained in:
Dirkjan Ochtman 2021-01-12 16:35:41 +01:00
parent e81d838f42
commit 619ea8a561
1 changed files with 2 additions and 1 deletions

View File

@ -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 {