Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Dec 4, 2023
1 parent ff1033b commit 01f89f9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/polygon_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@ use accurate::traits::*;
///
/// The standard winding of a Simple Feature polygon is counter-clockwise. However, if the polygon is a hole, then the winding is clockwise.
/// ESRI Shapefile polygons are opposite, with the outer-ring being clockwise and holes being counter-clockwise.
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Default, Copy, Clone)]
pub enum Winding {
Clockwise,
#[default]
CounterClockwise,
}

impl Default for Winding {
fn default() -> Self {
Winding::CounterClockwise
}
}

/// Compute the perimeter and area of a polygon on a Geodesic.
#[derive(Debug, Clone)]
pub struct PolygonArea<'a> {
Expand Down Expand Up @@ -65,7 +60,7 @@ pub struct PolygonArea<'a> {
/// pa.add_point(0.0, 1.0);
/// pa.add_point(1.0, 1.0);
/// pa.add_point(1.0, 0.0);
////
///
/// let (perimeter, area, _num) = pa.compute(false);
///
/// use approx::assert_relative_eq;
Expand Down

0 comments on commit 01f89f9

Please sign in to comment.