mirror of
https://github.com/instant-labs/instant-distance.git
synced 2025-02-16 12:52:08 +00:00
Make code compile again without serde
This commit is contained in:
parent
e81d838f42
commit
619ea8a561
@ -624,10 +624,11 @@ struct ZeroNode {
|
|||||||
/// The nearest neighbors on this layer
|
/// The nearest neighbors on this layer
|
||||||
///
|
///
|
||||||
/// This is always kept in sorted order (near to far).
|
/// This is always kept in sorted order (near to far).
|
||||||
#[serde(with = "BigArray")]
|
#[cfg_attr(feature = "serde", serde(with = "BigArray"))]
|
||||||
nearest: [PointId; M * 2],
|
nearest: [PointId; M * 2],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "serde-big-array")]
|
||||||
big_array! { BigArray; }
|
big_array! { BigArray; }
|
||||||
|
|
||||||
impl Default for ZeroNode {
|
impl Default for ZeroNode {
|
||||||
|
Loading…
Reference in New Issue
Block a user