From 0e54356345fb326cb3b8a41cbe297747d69f3b25 Mon Sep 17 00:00:00 2001 From: Manuel Raimann Date: Wed, 11 Feb 2026 20:04:51 +0100 Subject: [PATCH] fix: rename variable to pass typos check --- src/pareto.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pareto.rs b/src/pareto.rs index ab0449a..4cfc822 100644 --- a/src/pareto.rs +++ b/src/pareto.rs @@ -304,10 +304,10 @@ fn hv_recursive(points: &[Vec], reference: &[f64]) -> f64 { // Project points[0..=i] onto the first d-1 dimensions and // keep only the non-dominated subset. let projected: Vec> = sorted[..=i].iter().map(|p| p[..d - 1].to_vec()).collect(); - let nd = non_dominated_minimize(&projected); + let non_dom = non_dominated_minimize(&projected); - if !nd.is_empty() { - result += height * hv_recursive(&nd, &sub_ref); + if !non_dom.is_empty() { + result += height * hv_recursive(&non_dom, &sub_ref); } }