a-b-street / osm2streets

Convert OSM to street networks with detailed geometry
https://a-b-street.github.io/osm2streets
Apache License 2.0
102 stars 9 forks source link

Remove the useless RefCell from debugging calls, letting StreetNetwork #180

Closed dabreegster closed 1 year ago

dabreegster commented 1 year ago

become Send. #179

I first did this the hard way in https://github.com/a-b-street/osm2streets/tree/debug_sendsync, splitting out a separate Debugger type. But as I was opening that PR, I asked myself why couldn't all the debug_ methods just take &mut, and... turns out they can. Anywhere that's modifying streets and wants to record interesting debug stuff already has a mutable reference.