chore: fix new lint warnings (#400)
This commit is contained in:
parent
ae796b4a01
commit
90432bf556
10 changed files with 163 additions and 182 deletions
|
|
@ -37,7 +37,7 @@ pub enum Error {
|
|||
/// inside `cmp` function you will compare the first element of the chunk e.g.
|
||||
/// `let cmp = |chunk: &Vec<i32>, point: &i32| chunk[0].cmp(point)`.
|
||||
fn chunk_binary_search<ChunkT, PointT>(
|
||||
chunks: &Vec<ChunkT>,
|
||||
chunks: &[ChunkT],
|
||||
point: &PointT,
|
||||
cmp: impl Fn(&ChunkT, &PointT) -> Result<Ordering, Box<dyn std::error::Error>>,
|
||||
) -> Result<Option<usize>, Box<dyn std::error::Error>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue