diff --git a/src/tree.rs b/src/tree.rs index 2620747..a9a2321 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -252,7 +252,7 @@ impl RawCongee { ) -> Result, OOMError> { let backoff = Backoff::new(); loop { - match self.insert_inner(&k, &mut |_| tid, guard) { + match self.insert_inner(k, &mut |_| tid, guard) { Ok(v) => return Ok(v), Err(e) => match e { ArtError::Locked | ArtError::VersionNotMatch => { @@ -277,7 +277,7 @@ impl RawCongee { { let backoff = Backoff::new(); loop { - match self.insert_inner(&k, insert_func, guard) { + match self.insert_inner(k, insert_func, guard) { Ok(v) => return Ok(v), Err(e) => match e { ArtError::Locked | ArtError::VersionNotMatch => {