chore: bump compiler version and clippy fixes (#105)
Signed-off-by: Alex Chi Z <iskyzh@gmail.com>
This commit is contained in:
@@ -86,7 +86,7 @@ impl TieredCompactionController {
|
||||
.len()
|
||||
.min(self.options.max_merge_width.unwrap_or(usize::MAX));
|
||||
println!("compaction triggered by reducing sorted runs");
|
||||
return Some(TieredCompactionTask {
|
||||
Some(TieredCompactionTask {
|
||||
tiers: snapshot
|
||||
.levels
|
||||
.iter()
|
||||
@@ -94,7 +94,7 @@ impl TieredCompactionController {
|
||||
.cloned()
|
||||
.collect::<Vec<_>>(),
|
||||
bottom_tier_included: snapshot.levels.len() >= num_tiers_to_take,
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
pub fn apply_compaction_result(
|
||||
|
@@ -99,7 +99,10 @@ impl<I: StorageIterator> FusedIterator<I> {
|
||||
}
|
||||
|
||||
impl<I: StorageIterator> StorageIterator for FusedIterator<I> {
|
||||
type KeyType<'a> = I::KeyType<'a> where Self: 'a;
|
||||
type KeyType<'a>
|
||||
= I::KeyType<'a>
|
||||
where
|
||||
Self: 'a;
|
||||
|
||||
fn is_valid(&self) -> bool {
|
||||
!self.has_errored && self.iter.is_valid()
|
||||
|
Reference in New Issue
Block a user