Skip to content

Commit 36c3f85

Browse files
committed
Add derived clone implementation.
1 parent b01f201 commit 36c3f85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sif-kdtree"
33
description = "simple, immutable, flat k-d tree"
4-
version = "0.5.0"
4+
version = "0.5.1"
55
edition = "2018"
66
rust-version = "1.55"
77
authors = ["Adam Reichold <[email protected]>"]

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub trait Object {
178178
///
179179
/// Note that this tree dereferences to and deserializes as a slice of objects.
180180
/// Modifying object positions through interior mutability or deserializing a modified sequence is safe but will lead to incorrect results.
181-
#[derive(Debug, Default)]
181+
#[derive(Debug, Default, Clone)]
182182
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
183183
#[cfg_attr(feature = "serde", serde(transparent))]
184184
pub struct KdTree<O, S = Box<[O]>>

0 commit comments

Comments
 (0)