Skip to content

Commit

Permalink
clippy knows best
Browse files Browse the repository at this point in the history
  • Loading branch information
density215 committed Oct 23, 2024
1 parent 7e9c634 commit 07712eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/local_array/store/atomic_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ impl<AF: AddressFamily, M: crate::prefix_record::Meta> StoredPrefix<AF, M> {

pub(crate) fn get_next_bucket(&self) -> Option<&PrefixSet<AF, M>> {
if self.next_bucket.is_empty() {
return None;
None
} else {
return Some(&self.next_bucket);
Some(&self.next_bucket)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/local_array/store/custom_alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ impl<
) -> Result<(), PrefixStoreError> {
let (stored_prefix, _level) = self
.non_recursive_retrieve_prefix_mut_with_guard(prefix)
.or_else(|_| Err(PrefixStoreError::StoreNotReadyError))?;
.map_err(|_| PrefixStoreError::StoreNotReadyError)?;

// let current =
// stored_prefix.ok_or(PrefixStoreError::StoreNotReadyError)?;
Expand All @@ -744,7 +744,7 @@ impl<
) -> Result<(), PrefixStoreError> {
let (stored_prefix, _level) = self
.non_recursive_retrieve_prefix_mut_with_guard(prefix)
.or_else(|_| Err(PrefixStoreError::StoreNotReadyError))?;
.map_err(|_| PrefixStoreError::StoreNotReadyError)?;

// let current =
// stored_prefix.ok_or(PrefixStoreError::StoreNotReadyError)?;
Expand Down

0 comments on commit 07712eb

Please sign in to comment.