Skip to content

Commit

Permalink
fix new sig: do not introduce necessary breaking change (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Jul 9, 2023
1 parent c690361 commit 3f0053b
Show file tree
Hide file tree
Showing 3 changed files with 6,347 additions and 1,600 deletions.
5 changes: 2 additions & 3 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod benches_polygon {
extern crate test;
use test::Bencher;

fn load_polygon() -> geometry_rs::Polygon{
fn load_polygon() -> geometry_rs::Polygon {
let poly = geometry_rs::Polygon::new(
vec![
geometry_rs::Point {
Expand All @@ -31,15 +31,14 @@ mod benches_polygon {
},
],
vec![],
false,
);
return poly;
}

#[bench]
fn poly_contain_point(b: &mut Bencher) {
let poly = load_polygon();

let p_in = geometry_rs::Point {
x: 99.9804504129416,
y: 39.70716466970461,
Expand Down
Loading

0 comments on commit 3f0053b

Please sign in to comment.