From 3352e388f9eb80753fe88f28389bf978b673c352 Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Fri, 29 May 2026 17:30:27 +0800 Subject: [PATCH] fix: simple fix a rust compile warning Signed-off-by: yihong0618 --- rust/cuvs/src/cagra/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/cuvs/src/cagra/index.rs b/rust/cuvs/src/cagra/index.rs index d69a4d5033..7a1c24197c 100644 --- a/rust/cuvs/src/cagra/index.rs +++ b/rust/cuvs/src/cagra/index.rs @@ -300,7 +300,7 @@ mod tests { let queries = ManagedTensor::from(&queries).to_device(&res).unwrap(); let k = 10; - let mut neighbors_host = ndarray::Array::::zeros((n_queries, k)); + let neighbors_host = ndarray::Array::::zeros((n_queries, k)); let neighbors = ManagedTensor::from(&neighbors_host).to_device(&res).unwrap(); let mut distances_host = ndarray::Array::::zeros((n_queries, k)); let distances = ManagedTensor::from(&distances_host).to_device(&res).unwrap();