Skip to content

Commit fc4bea7

Browse files
committed
make clippy happy
1 parent 993d880 commit fc4bea7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ impl<'t, D: Distance> Reader<'t, D> {
303303
fn database_get(&self, rtxn: &'t RoTxn, key: &Key) -> Result<Option<GenericReadNode<D>>> {
304304
match self.version {
305305
// the node format didn't change between v0.4.0 and v0.6.0 included
306-
Version { major: 0, minor: 4 | 5 | 6, patch: _ } => Ok(self
306+
Version { major: 0, minor: 4..=6, patch: _ } => Ok(self
307307
.database
308308
.remap_data_type::<GenericReadNodeCodecFromV0_4_0<D>>()
309309
.get(rtxn, key)?),

src/upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub fn from_0_6_to_current<C: Distance>(
203203

204204
let mut last_tree_id = match read_database
205205
.remap_key_type::<PrefixCodec>()
206-
.rev_prefix_iter(&rtxn, &Prefix::tree(index))?
206+
.rev_prefix_iter(rtxn, &Prefix::tree(index))?
207207
.remap_types::<KeyCodec, Bytes>()
208208
.next()
209209
{

0 commit comments

Comments
 (0)