Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherphil committed Mar 10, 2024
1 parent 08738c5 commit 4f2597e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/binary_descriptors/brief.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ mod tests {
.into_iter()
.map(|_| {
Point::new(
rng.gen_range(24, image.width() - 24),
rng.gen_range(24, image.height() - 24),
rng.gen_range(24..image.width() - 24),
rng.gen_range(24..image.height() - 24),
)
})
.collect::<Vec<Point<u32>>>();
Expand All @@ -357,8 +357,8 @@ mod tests {
.into_iter()
.map(|_| {
Point::new(
rng.gen_range(24, image.width() - 24),
rng.gen_range(24, image.height() - 24),
rng.gen_range(24..image.width() - 24),
rng.gen_range(24..image.height() - 24),
)
})
.collect::<Vec<Point<u32>>>();
Expand Down
6 changes: 3 additions & 3 deletions src/binary_descriptors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub fn match_binary_descriptors<'a, T: BinaryDescriptor>(
for _ in 0..l {
// choose k random bits (not necessarily unique)
let bits = (0..k)
.map(|_| rng.gen_range(0, queries[0].get_size()))
.map(|_| rng.gen_range(0..queries[0].get_size()))
.collect::<Vec<u32>>();

let mut new_hashmap = HashMap::<u128, Vec<&T>>::with_capacity(database.len());
Expand Down Expand Up @@ -148,8 +148,8 @@ mod tests {
.into_iter()
.map(|_| {
Point::new(
rng.gen_range(20, image.width() - 20),
rng.gen_range(20, image.height() - 20),
rng.gen_range(20..image.width() - 20),
rng.gen_range(20..image.height() - 20),
)
})
.collect::<Vec<Point<u32>>>();
Expand Down

0 comments on commit 4f2597e

Please sign in to comment.