billyrieger / bimap-rs

Generic bijective maps in Rust
Apache License 2.0
129 stars 26 forks source link

fix no_std tests for BiBTreeMap #13

Closed nw0 closed 4 years ago

nw0 commented 4 years ago

From my other pull request (#12), I noticed that the no_std tests were failing to run for BiBTreeMap.

To fix this, I've imported alloc guarded by cfg(test), allowing the unit tests to run.

I've also modified a failing doctest in lib.rs, which required Ord to be implemented for Foo.

billyrieger commented 4 years ago

Oops, didn't realize the tests were broken 😬