From a5c74edfecd7152add1748c5285e15a92bd859cf Mon Sep 17 00:00:00 2001 From: vangel76 Date: Wed, 4 Nov 2026 00:18:00 +0100 Subject: [PATCH] linest test: use f64::from directly (clippy) Co-Authored-By: Claude Sonnet 5.5 --- crates/functions/src/stat/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/functions/src/stat/tests.rs b/crates/functions/src/stat/tests.rs index ccbbf8a3a..1dd208111 100644 --- a/crates/functions/src/stat/tests.rs +++ b/crates/functions/src/stat/tests.rs @@ -443,7 +443,7 @@ fn linest_drops_collinear_columns() { // unit vector. Some length hits a rounding mean for each constant. for c in [0.1, 1.1, 1e6 + 0.3] { for n in 3..=12 { - let xs: Vec = (1..=n).map(|i| f64::from(i)).collect(); + let xs: Vec = (1..=n).map(f64::from).collect(); let ys: Vec = (1..=n).map(|i| f64::from(i * i % 7) + 0.5 * f64::from(i)).collect(); let r = linest_rows(&ys, &[vec![c; n as usize], xs], true); assert_eq!(r[0][1], Some(0.0), "coefficient of the constant {c}, n={n}");