Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Dec 13, 2023
1 parent 951a036 commit 2ba74b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/compaction/levelled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl CompactionStrategy for Strategy {
return Choice::DoCompact(CompactionInput {
segment_ids,
dest_level: next_level_index,
target_size: self.target_size as u64,
target_size: u64::from(self.target_size),
});
}
}
Expand Down Expand Up @@ -162,7 +162,7 @@ impl CompactionStrategy for Strategy {
return Choice::DoCompact(CompactionInput {
segment_ids,
dest_level: 1,
target_size: self.target_size as u64,
target_size: u64::from(self.target_size),
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ impl Tree {
/// # Errors
///
/// Will return `Err` if an IO error occurs.
pub fn iter(&self) -> Range<'_> {
#[must_use] pub fn iter(&self) -> Range<'_> {
self.create_iter(None)
}

Expand Down

0 comments on commit 2ba74b2

Please sign in to comment.