From b00b6c722754f37c8196f1db75804f27579b9720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Str=C3=B6m?= Date: Mon, 12 Dec 2022 14:37:56 -0300 Subject: [PATCH] Require K and V to be 'static, bump patch version --- Cargo.toml | 2 +- src/lib.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 158a458..802a8b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ authors = ["Kristoffer Ström "] edition = "2018" name = "appendix" -version = "0.2.1" +version = "0.2.2" description = "Append-only, on-disk key-value index" documentation = "https://docs.rs/appendix/" keywords = ["index", "datastructure"] diff --git a/src/lib.rs b/src/lib.rs index 453c1d6..8b89b60 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -132,7 +132,11 @@ impl Entry { } } -impl Index { +impl Index +where + K: 'static + Hash + Copy + PartialEq, + V: 'static + Hash + Copy, +{ /// Create or load an index at `path` pub fn new>(path: &P) -> io::Result { let mut lanes = ArrayVec::new();