mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
Make clippy and fmt happy
This commit is contained in:
parent
66b8cfd8c8
commit
7c2f5f77b8
@ -542,7 +542,7 @@ impl Index {
|
||||
main_key::VECTOR_HNSW_KEY_PREFIX.as_bytes(),
|
||||
)?;
|
||||
let mut deleted = false;
|
||||
while let Some(_) = iter.next().transpose()? {
|
||||
while iter.next().transpose()?.is_some() {
|
||||
// We do not keep a reference to the key or the value.
|
||||
unsafe { deleted |= iter.del_current()? };
|
||||
}
|
||||
|
@ -54,9 +54,10 @@ impl<A: AsRef<[u8]>> Read for ReadableSlices<A> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::ReadableSlices;
|
||||
use std::io::Read;
|
||||
|
||||
use super::ReadableSlices;
|
||||
|
||||
#[test]
|
||||
fn basic() {
|
||||
let data: Vec<_> = (0..100).collect();
|
||||
|
Loading…
Reference in New Issue
Block a user