Make clippy happy

This commit is contained in:
Loïc Lecrenier 2022-11-17 12:17:53 +01:00
parent ac3baafbe8
commit 0caadedd3b

View File

@ -131,11 +131,11 @@ impl FacetsUpdateIncrementalInner {
let mut iter = let mut iter =
self.db.as_polymorph().prefix_iter::<_, ByteSlice, FacetGroupValueCodec>( self.db.as_polymorph().prefix_iter::<_, ByteSlice, FacetGroupValueCodec>(
txn, txn,
&prefix.as_slice(), prefix.as_slice(),
)?; )?;
let (key_bytes, value) = iter.next().unwrap()?; let (key_bytes, value) = iter.next().unwrap()?;
Ok(( Ok((
FacetGroupKeyCodec::<ByteSliceRefCodec>::bytes_decode(&key_bytes) FacetGroupKeyCodec::<ByteSliceRefCodec>::bytes_decode(key_bytes)
.ok_or(Error::Encoding)? .ok_or(Error::Encoding)?
.into_owned(), .into_owned(),
value, value,