rust-datetime / zoneinfo-compiled

Compiled zoneinfo file parsing library for Rust.
MIT License
4 stars 5 forks source link

PART 2 Don't carry InvalidMagicNumber bytes read #5

Closed gnuish closed 6 years ago

gnuish commented 6 years ago

This changes the error. People probably would never want to know what the four bytes were, so there's a little less bloat this way. But in the rare case they do, it can still be manually read afterwards.

ogham commented 6 years ago

Thanks for these two!

People probably would never want to know what the four bytes were

I think the only reason I added this in was because I was still figuring out how to parse these files... and you know, since then, I haven’t needed to know what that number was once