Rewrite tracksegment::consume cleaner and more strict - Do not accept arbitrary amounts of opening trkseg tags, we   require exactly one - Do not accept any closing tag as tag that closes the tracksegment,   require it to be trkseg - Use new custom errors InvalidClosingTag and MissingClosingTag - Avoid indirection of TrackSegmentEvents, handle XmlEvents more directly
Rewrite tracksegment::consume cleaner and more strict
- Do not accept arbitrary amounts of opening trkseg tags, we
  require exactly one
- Do not accept any closing tag as tag that closes the tracksegment,
  require it to be trkseg
- Use new custom errors InvalidClosingTag and MissingClosingTag
- Avoid indirection of TrackSegmentEvents, handle XmlEvents more directly

georust/rust-gpx