From 7c96ea1bbb9f6cf985658f17c7f4cf45a71a4fc2 Mon Sep 17 00:00:00 2001 From: ajianaz Date: Sun, 4 Oct 2026 15:48:09 +0700 Subject: [PATCH] fix(index): drop deprecated std::f32 import in vector tests 'use std::f32;' (tests module) makes bare f32::EPSILON resolve to the deprecated module-path constant: hard clippy error on rustc 1.99 (-D warnings), blocking every pre-commit commit on current-stable machines while CI's floating stable toolchain still passes. Removing the import lets f32::EPSILON resolve to the associated constant (stable since 1.43) on old and new toolchains alike. Fixes #557 --- src/index/vector.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index/vector.rs b/src/index/vector.rs index 4d6e3df..8619b34 100644 --- a/src/index/vector.rs +++ b/src/index/vector.rs @@ -619,7 +619,6 @@ fn atomic_write(path: &std::path::Path, data: &[u8]) -> Result<()> { #[cfg(test)] mod tests { use super::*; - use std::f32; fn make_unit_vec(dims: usize, idx: usize) -> Vec { let mut v = vec![0.0f32; dims];