mirror of
https://github.com/instant-labs/instant-distance.git
synced 2025-02-08 17:02:02 +00:00
Apply suggestions from clippy 1.84
This commit is contained in:
parent
0b7cf4718c
commit
230a787a7b
@ -180,11 +180,7 @@ impl Search {
|
||||
|
||||
/// Return the next closest point
|
||||
fn __next__(mut slf: PyRefMut<Self>) -> Option<Neighbor> {
|
||||
let (index, idx) = match slf.cur.take() {
|
||||
Some(x) => x,
|
||||
None => return None,
|
||||
};
|
||||
|
||||
let (index, idx) = slf.cur.take()?;
|
||||
let py = slf.py();
|
||||
let neighbor = match &index {
|
||||
HnswType::Hnsw(hnsw) => {
|
||||
|
Loading…
Reference in New Issue
Block a user