Skip to content

Commit

Permalink
Add derived clone implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreichold committed Feb 11, 2024
1 parent b01f201 commit 36c3f85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<O, S = Box<[O]>>
Expand Down

0 comments on commit 36c3f85

Please sign in to comment.