Apply suggestions from clippy 1.84

This commit is contained in:
Dirkjan Ochtman 2025-01-10 09:52:32 +01:00
parent 0b7cf4718c
commit 230a787a7b

View File

@ -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) => {