diff --git a/Cargo.toml b/Cargo.toml index 48b0356..10ceaa3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sif-kdtree" description = "simple, immutable, flat k-d tree" -version = "0.5.0" +version = "0.5.1" edition = "2018" rust-version = "1.55" authors = ["Adam Reichold "] diff --git a/src/lib.rs b/src/lib.rs index 0e0368f..96b13b2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -178,7 +178,7 @@ pub trait Object { /// /// Note that this tree dereferences to and deserializes as a slice of objects. /// Modifying object positions through interior mutability or deserializing a modified sequence is safe but will lead to incorrect results. -#[derive(Debug, Default)] +#[derive(Debug, Default, Clone)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serde", serde(transparent))] pub struct KdTree>