Nadrieril / dhall-rust

Maintainable configuration files, for Rust users
Other
303 stars 27 forks source link

Tweak tests to avoid double compilation #106

Closed Nadrieril closed 5 years ago

Nadrieril commented 5 years ago

Every time I compiled the dhall crate with tests enabled, it got compiled twice for some reason. I just figured out the reason: when tests are enabled, a macro gets exported into the scope of the whole crate, so rust recompiles the whole crate just in case. This fixes that.