Skip to content

Commit

Permalink
Address clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
westonpace committed Jan 31, 2025
1 parent f05368c commit 865a2ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rust/lance/src/index/vector/ivf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2237,6 +2237,9 @@ mod tests {
}
}

// Clippy doesn't like that all start with Ivf but we might have some in the future
// that _don't_ start with Ivf so I feel it is meaningful to keep the prefix
#[allow(clippy::enum_variant_names)]
enum TestIndexType {
IvfPq { pq: TestPqParams },
IvfHnswPq { pq: TestPqParams, num_edges: usize },
Expand Down Expand Up @@ -2344,7 +2347,7 @@ mod tests {
.await
.unwrap();

let query = vec![0.0; test_case.dimension as usize]
let query = vec![0.0; test_case.dimension]
.into_iter()
.collect::<Float32Array>();
let results = dataset
Expand Down

0 comments on commit 865a2ac

Please sign in to comment.