zkat / miette

Fancy extension for std::error::Error with pretty, detailed diagnostic printing.
https://docs.rs/miette
Apache License 2.0
1.85k stars 106 forks source link

Label collection fixes and cleanup #343

Closed Nahor closed 4 months ago

Nahor commented 4 months ago

The most important one is adding the documentation to lib.rs. I didn't know the documentation was there and the README.md was built out of it.

The rest is removing pointless or redundant code.

(The change about chaining the iterators started from a compilation warning about an unnecessarily mutable variable. However I'm not sure how I was getting that warning, I cannot reproduce it anymore. But I think the change it still worthwhile anyway, but opinions may vary :))