getsentry / rust-sourcemap

A library for rust that implements basic sourcemap handling
Other
224 stars 27 forks source link

fix: SourceView implement Sync #82

Closed underfin closed 7 months ago

underfin commented 7 months ago

The *const u8 is !Send, here already using Mutex to make sure the ptr is thread-safe, so add SourceViewLinePtr struct to let it implement Send + Sync.

underfin commented 7 months ago

@Swatinem Thanks for your review, I already fixed it.

underfin commented 7 months ago

@Swatinem Could you publish a new version for it? Thank you a lot.

Swatinem commented 7 months ago

Done. Though I somehow messed up the commit message when merging, on well.