Skip to content

Commit

Permalink
Require K and V to be 'static, bump patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
krl committed Dec 12, 2022
1 parent 872cc52 commit b00b6c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Kristoffer Ström <kristoffer@rymdkoloni.se>"]
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"]
Expand Down
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ impl<K: Hash, V: Hash> Entry<K, V> {
}
}

impl<K: Hash + Copy + PartialEq, V: Hash + Copy> Index<K, V> {
impl<K, V> Index<K, V>
where
K: 'static + Hash + Copy + PartialEq,
V: 'static + Hash + Copy,
{
/// Create or load an index at `path`
pub fn new<P: AsRef<Path>>(path: &P) -> io::Result<Self> {
let mut lanes = ArrayVec::new();
Expand Down

0 comments on commit b00b6c7

Please sign in to comment.