Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao committed Oct 30, 2024
1 parent 83a05ea commit ab7e10a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl<const K_LEN: usize, A: Allocator + Clone + Send> RawCongee<K_LEN, A> {
) -> Result<Option<usize>, 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 => {
Expand All @@ -277,7 +277,7 @@ impl<const K_LEN: usize, A: Allocator + Clone + Send> RawCongee<K_LEN, A> {
{
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 => {
Expand Down

0 comments on commit ab7e10a

Please sign in to comment.