Skip to content

Commit

Permalink
Merge pull request #1219 from martinfrances107/doc_indent
Browse files Browse the repository at this point in the history
Minor: Clippy now reports indentation issues in "Docs".
  • Loading branch information
urschrei authored Sep 29, 2024
2 parents a310f58 + 44a5e6b commit c975e97
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions geo/src/algorithm/stitch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ pub trait StitchTriangles<T: GeoFloat>: private::Stitchable<T> {
/// │./..\../.\../..\.│
/// │/....\/...\/....\│
/// └─────────────────┘
///
/// │ │ │
/// ▼ ▼ ▼
///
///
/// │ │ │
/// ▼ ▼ ▼
///
/// ┌────────x────────┐
/// │ / \ │
/// │ / \ │
Expand Down Expand Up @@ -189,9 +189,9 @@ fn same_line<T: GeoFloat>(l1: &Line<T>, l2: &Line<T>) -> bool {
/// kinds of lines:
///
/// - boundary lines: these are the unique lines on the boundary of the compound shape which is
/// formed by the collection of polygons
/// formed by the collection of polygons
/// - inner lines: these are all non-boundary lines. They are not unique and have exactly one
/// duplicate on one adjacent polygon in the collection (as long as the input is valid!)
/// duplicate on one adjacent polygon in the collection (as long as the input is valid!)
fn find_boundary_lines<T: GeoFloat>(lines: Vec<Line<T>>) -> Vec<Line<T>> {
lines.into_iter().fold(Vec::new(), |mut lines, new_line| {
if let Some(idx) = lines.iter().position(|line| same_line(line, &new_line)) {
Expand Down

0 comments on commit c975e97

Please sign in to comment.