From 685f4dc4f21154ce86990c7d2540ffb902f273f7 Mon Sep 17 00:00:00 2001 From: ajianaz Date: Sun, 4 Oct 2026 15:58:41 +0700 Subject: [PATCH] chore(deps): pin rustls 0.23.45 + drop deprecated f32 import in vector tests Two develop-wide red gates, one unblock PR (both verified against CI): - RUSTSEC-2026-0285: rustls 0.23.42 in Cargo.lock trips rustsec audit-check on every open PR. Pin 0.23.45 (same remediation as gaira 2026-10-03); rustls-webpki rides along to 0.103.15. Closes #560. - 'use std::f32;' in the vector tests module resolves f32::EPSILON to the deprecated module-path constant: clippy -D warnings is red on rustc 1.99, now including CI's stable toolchain. Removing the import restores the associated-constant resolution. Closes #557. Lockfile + one test-only line; no runtime code paths touched. --- Cargo.lock | 8 ++++---- src/index/vector.rs | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d521907..14eca7b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1599,9 +1599,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.42" +version = "0.23.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c54fcab019b409d04215d3a17cb438fd7fbf192ee61461f20f4fe18704bc138" +checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" dependencies = [ "once_cell", "ring", @@ -1623,9 +1623,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.13" +version = "0.103.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" +checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" dependencies = [ "ring", "rustls-pki-types", 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];