Skip to content

Commit

Permalink
Fix Clippy lints
Browse files Browse the repository at this point in the history
Signed-off-by: Filippo Costa <[email protected]>
  • Loading branch information
neysofu committed Mar 4, 2024
1 parent bc26296 commit 7456e92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cache/cache_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl CacheDb {
seek_key: &impl SeekKeyEncoder<S>,
) -> anyhow::Result<Option<(S::Key, S::Value)>> {
let seek_key = seek_key.encode_seek_key()?;
let range = ..=seek_key.clone();
let range = ..=seek_key;
let change_set = self
.local_cache
.lock()
Expand All @@ -144,7 +144,7 @@ impl CacheDb {
.db
.read()
.expect("Parent snapshots lock must not be poisoned");
let parent_iter = parent.rev_iter_range::<S>(change_set.id(), range.clone())?;
let parent_iter = parent.rev_iter_range::<S>(change_set.id(), range)?;

let mut combined_iter: CacheDbIter<'_, _, _> = CacheDbIter {
local_cache_iter: local_cache_iter.peekable(),
Expand Down Expand Up @@ -233,7 +233,7 @@ impl CacheDb {
.db
.read()
.expect("Parent snapshots lock must not be poisoned");
let parent_iter = parent.iter_range::<S>(change_set.id(), range.clone())?;
let parent_iter = parent.iter_range::<S>(change_set.id(), range)?;

let combined_iter: CacheDbIter<'_, _, _> = CacheDbIter {
local_cache_iter: local_cache_iter.peekable(),
Expand Down

0 comments on commit 7456e92

Please sign in to comment.