mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-25 14:10:06 +01:00
Apply suggestions
Co-authored-by: Many <many@meilisearch.com>
This commit is contained in:
parent
21ec334dcc
commit
0c5f4ed7de
@ -82,7 +82,7 @@ impl CboRoaringBitmapCodec {
|
|||||||
buffer.extend_from_slice(&integer.to_ne_bytes());
|
buffer.extend_from_slice(&integer.to_ne_bytes());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Integers *must* be ordered here, no matter what.
|
// We can unwrap safely because the vector is sorted upper.
|
||||||
let roaring = RoaringBitmap::from_sorted_iter(vec.into_iter()).unwrap();
|
let roaring = RoaringBitmap::from_sorted_iter(vec.into_iter()).unwrap();
|
||||||
roaring.serialize_into(buffer)?;
|
roaring.serialize_into(buffer)?;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user