Skip to content

Commit ce565f5

Browse files
committed
clippy
1 parent 7311fca commit ce565f5

File tree

8 files changed

+0
-12
lines changed

8 files changed

+0
-12
lines changed

src/abstract.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use std::{ops::RangeBounds, sync::Arc};
1414
pub type RangeItem = crate::Result<KvPair>;
1515

1616
/// Generic Tree API
17-
#[expect(clippy::module_name_repetitions)]
1817
#[enum_dispatch]
1918
pub trait AbstractTree {
2019
#[doc(hidden)]

src/compaction/leveled.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,6 @@ impl CompactionStrategy for Strategy {
371371
}
372372

373373
// NOTE: Never score Lmax
374-
//
375-
// NOTE: We check for level length above
376-
#[expect(clippy::indexing_slicing)]
377374
{
378375
scores[6] = (0.0, 0);
379376
}

src/table/block/encoder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ impl<'a, Context: Default, Item: Encodable<Context>> Encoder<'a, Context, Item>
138138

139139
self.base_key = item.key();
140140
} else {
141-
#[expect(clippy::cast_possible_truncation, reason = "keys are u16 long max")]
142141
let shared_prefix_len = longest_shared_prefix_length(self.base_key, item.key());
143142
item.encode_truncated_into(&mut *self.writer, &mut self.state, shared_prefix_len)?;
144143
}

src/table/data_block/iter.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ impl<'a> Iter<'a> {
128128
std::cmp::Ordering::Equal => {
129129
// Consume all items equal to the needle to enforce strictness
130130
self.decoder.next().expect("should exist");
131-
continue;
132131
}
133132
std::cmp::Ordering::Less => {
134133
self.decoder.next().expect("should exist");
@@ -160,7 +159,6 @@ impl<'a> Iter<'a> {
160159
std::cmp::Ordering::Equal => {
161160
// Consume all items equal to the needle from the high end
162161
self.decoder.next_back().expect("should exist");
163-
continue;
164162
}
165163
std::cmp::Ordering::Greater => {
166164
self.decoder.next_back().expect("should exist");

src/table/filter/standard_bloom/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ impl<'a> StandardBloomFilterReader<'a> {
6464

6565
let offset = reader.position() as usize;
6666

67-
#[expect(clippy::indexing_slicing)]
6867
Ok(Self {
6968
k,
7069
m,

src/table/iter.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ impl DoubleEndedIterator for Iter {
332332

333333
// Retrieve the next data block from the cache (or disk on miss) so the high-side reader
334334
// can serve entries in reverse order.
335-
#[expect(clippy::single_match_else)]
336335
let block = match self.cache.get_block(self.table_id, handle.offset()) {
337336
Some(block) => block,
338337
None => {

src/tree/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ impl AbstractTree for Tree {
200200
let mut count = 0;
201201
let mut last_key = None;
202202

203-
#[expect(clippy::explicit_counter_loop)]
204203
for (key, value) in iter {
205204
if let Some(last_key) = &last_key {
206205
assert!(

src/version/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,6 @@ impl Version {
679679
write!(f, " ")?;
680680

681681
if run.len() >= 30 {
682-
#[expect(clippy::indexing_slicing)]
683682
for table in run.iter().take(2) {
684683
let id = table.id();
685684
let is_hidden = hidden_set.is_hidden(id);
@@ -693,7 +692,6 @@ impl Version {
693692
}
694693
write!(f, " . . . ")?;
695694

696-
#[expect(clippy::indexing_slicing)]
697695
for table in run.iter().rev().take(2).rev() {
698696
let id = table.id();
699697
let is_hidden = hidden_set.is_hidden(id);

0 commit comments

Comments
 (0)