getsentry / pdb

A parser for Microsoft PDB (Program Database) debugging information
https://docs.rs/pdb/
Apache License 2.0
400 stars 71 forks source link

Add updated `SourceLanguage` variants #157

Open Walnut356 opened 1 month ago

Walnut356 commented 1 month ago

The link in the docs leads to the VS 2015 documentation, so there are a few modern variants missing. I updated the doc link and added the new variants (notably includes Rust and Go) and updated the Display and From<u8> impls accordingly

I also noticed some repeated macro usage in the Display impl. Consolidating to 1 write!() expansion should save the compiler some minuscule amount of time.