Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Jan 13, 2019
1 parent 29627e7 commit 886d51a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
5 changes: 1 addition & 4 deletions geo/src/algorithm/bounding_rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,7 @@ where
#[cfg(test)]
mod test {
use algorithm::bounding_rect::BoundingRect;
use {
Coordinate, Line, LineString, MultiLineString, MultiPoint, MultiPolygon, Polygon,
Rect,
};
use {Coordinate, Line, LineString, MultiLineString, MultiPoint, MultiPolygon, Polygon, Rect};

#[test]
fn empty_linestring_test() {
Expand Down
16 changes: 2 additions & 14 deletions geo/src/algorithm/intersects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,22 +373,10 @@ mod test {
// (2,2) | (14,2)
// (8,1)
//
let e = LineString::from(vec![
(2., 2.),
(14., 2.),
(14., 8.),
(2., 8.),
(2., 2.),
]);
let e = LineString::from(vec![(2., 2.), (14., 2.), (14., 8.), (2., 8.), (2., 2.)]);
let v = vec![
LineString::from(vec![(4., 3.), (7., 3.), (7., 6.), (4., 6.), (4., 3.)]),
LineString::from(vec![
(9., 3.),
(12., 3.),
(12., 6.),
(9., 6.),
(9., 3.),
]),
LineString::from(vec![(9., 3.), (12., 3.), (12., 6.), (9., 6.), (9., 3.)]),
];
let poly = Polygon::new(e, v);
assert!(!poly.intersects(&LineString::from(vec![(5., 4.), (6., 5.)])));
Expand Down

0 comments on commit 886d51a

Please sign in to comment.