Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
AnAverageGitUser committed Jan 19, 2024
1 parent a8ce847 commit 83918a1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/input/triangulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
not(any(feature = "wasm-compatible", feature = "wasm-incompatible")),
all(feature = "wasm-compatible", feature = "wasm-incompatible")
))]
compile_error!("You must choose exactly one of the features: [\"wasm-compatible\", \"wasm-incompatible\"].");
compile_error!(
"You must choose exactly one of the features: [\"wasm-compatible\", \"wasm-incompatible\"]."
);

#[cfg(all(feature = "wasm-incompatible", not(feature = "wasm-compatible")))]
use geo_clipper::Clipper;
Expand All @@ -13,15 +15,15 @@ use geo_booleanop::boolean::BooleanOp;
#[cfg(feature = "tracing")]
use tracing::instrument;

use std::collections::VecDeque;
use geo_offset::Offset;
use crate::{Mesh, Polygon, Vertex};
use geo::{
Contains, Coord, CoordsIter, Intersects, MultiPolygon, Polygon as GeoPolygon,
SimplifyVwPreserve,
};
use geo_offset::Offset;
use glam::{vec2, Vec2};
use spade::{ConstrainedDelaunayTriangulation, Point2, Triangulation as SpadeTriangulation};
use crate::{Mesh, Polygon, Vertex};
use std::collections::VecDeque;

pub use geo::LineString;

Expand Down Expand Up @@ -120,11 +122,14 @@ impl Triangulation {
.collect(),
);

#[cfg(all(feature = "wasm-incompatible", not(feature = "wasm-compatible")))] {
merged = merged.union(&GeoPolygon::new(poly, vec![]), GEO_CLIPPER_CLIP_PRECISION);
#[cfg(all(feature = "wasm-incompatible", not(feature = "wasm-compatible")))]
{
merged =
merged.union(&GeoPolygon::new(poly, vec![]), GEO_CLIPPER_CLIP_PRECISION);
}

#[cfg(feature = "wasm-compatible")] {
#[cfg(feature = "wasm-compatible")]
{
merged = merged.union(&GeoPolygon::new(poly, vec![]));
}

Expand Down

0 comments on commit 83918a1

Please sign in to comment.