Make clippy happy

This commit is contained in:
Kerollmops
2023-06-14 15:59:10 +02:00
committed by Clément Renault
parent 2cf747cb89
commit 3b560ef7d0
2 changed files with 2 additions and 2 deletions

View File

@ -454,7 +454,7 @@ pub fn execute_search(
let hnsw = ctx.index.vector_hnsw(ctx.txn)?.unwrap_or_default();
let ef = hnsw.len().min(100);
let mut dest = vec![Neighbor { index: 0, distance: 0 }; ef];
let neighbors = hnsw.nearest(&vector, ef, &mut searcher, &mut dest[..]);
let neighbors = hnsw.nearest(vector, ef, &mut searcher, &mut dest[..]);
let mut docids = Vec::new();
for Neighbor { index, distance: _ } in neighbors.iter() {