Skip to content

Commit

Permalink
Add debug assert in case of inconsistent geom_begin and geom_end
Browse files Browse the repository at this point in the history
…calls
  • Loading branch information
Oreilles committed Aug 13, 2023
1 parent c730fc6 commit 3e7f6b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geozero/src/wkt/wkt_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ impl<'a, W: Write> WktWriter<'a, W> {
if geometry_size > 0 {
self.out.write_all(b")")?;
}
} else {
debug_assert!(false, "ended geometry that didn't start");
}
Ok(())
}
Expand Down

0 comments on commit 3e7f6b8

Please sign in to comment.