zed/crates/fuzzy_nucleo
Finn Evers 81b16f464c
fuzzy_nucleo: Fix out of range panic (#54371)
Closes ZED-6PK

The issue here was that we could hit cases where the amount of segments
< amount of CPUs, e.g. for 5 candidates and 4 CPUs, we would have 2
candidates per matcher, so for the fourth matcher, we would start
slicing at 3 * 2 = 6 > 5, which is out of bounds.

Instead, make it so that we distribute the candidates across all
matchers so that all matchers have either n or n + 1 candidates.

No release notes since this is only on Nightly.

Release Notes:

- N/A
2026-04-21 11:01:20 +02:00
..
benches fuzzy_nucleo: Add strings module and route several pickers through it (#54123) 2026-04-20 14:41:29 +02:00
src fuzzy_nucleo: Fix out of range panic (#54371) 2026-04-21 11:01:20 +02:00
Cargo.toml fuzzy_nucleo: Add strings module and route several pickers through it (#54123) 2026-04-20 14:41:29 +02:00
LICENSE-GPL Add fuzzy_nucleo crate for order independent file finder search (#51164) 2026-04-07 12:05:02 +02:00