happy clippy

This commit is contained in:
Louis Dureuil
2025-09-03 14:13:08 +02:00
parent 90cc5263f6
commit b05bcf2c13

View File

@ -153,8 +153,7 @@ impl VectorStore {
Ok(())
}
} else {
if self.quantized {
} else if self.quantized {
self._hannoy_to_arroy_bq::<
hannoy::distances::Hamming,
arroy::distances::BinaryQuantizedCosine,
@ -171,8 +170,7 @@ impl VectorStore {
for index in vector_store_range_for_embedder(self.embedder_index) {
let writer = arroy::Writer::new(self._arroy_angular_db(), index, dimensions);
let mut builder = writer.builder(&mut rng);
let builder =
builder.progress(|step| progress.update_progress_from_arroy(step));
let builder = builder.progress(|step| progress.update_progress_from_arroy(step));
builder.prepare_hannoy_conversion(wtxn)?;
builder.build(wtxn)?;
}
@ -180,7 +178,6 @@ impl VectorStore {
Ok(())
}
}
}
#[allow(clippy::too_many_arguments)]
pub fn build_and_quantize<R: rand::Rng + rand::SeedableRng>(