Skip to content

Commit

Permalink
Separate lifetimes on key and value to MultimapTable remove()
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Mar 21, 2024
1 parent f4e9e09 commit 6bba3b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/multimap_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -983,10 +983,10 @@ impl<'txn, K: Key + 'static, V: Key + 'static> MultimapTable<'txn, K, V> {
/// Removes the given key-value pair
///
/// Returns `true` if the key-value pair was present
pub fn remove<'a>(
pub fn remove<'k, 'v>(
&mut self,
key: impl Borrow<K::SelfType<'a>>,
value: impl Borrow<V::SelfType<'a>>,
key: impl Borrow<K::SelfType<'k>>,
value: impl Borrow<V::SelfType<'v>>,
) -> Result<bool> {
let get_result = self.tree.get(key.borrow())?;
if get_result.is_none() {
Expand Down

0 comments on commit 6bba3b7

Please sign in to comment.