aboutsummaryrefslogtreecommitdiff
path: root/src/stable_vec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stable_vec.rs')
-rw-r--r--src/stable_vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stable_vec.rs b/src/stable_vec.rs
index 72a1995..c3b8685 100644
--- a/src/stable_vec.rs
+++ b/src/stable_vec.rs
@@ -7,7 +7,7 @@ use std::slice::IterMut;
/// Works like Vec, but with an additional field, where the position information is saved. Does not
/// support inserting elements in arbitrary positions, since that may shift the data. Removing data
/// in the middle is fine, however.
-#[derive(Debug, Deserialize, Serialize)]
+#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct StableVec<T> {
data: Vec<(usize, T)>,
}