billyrieger / bimap-rs

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

Relax trait bounds where possible #44

Open Shir0kamii opened 1 year ago

Shir0kamii commented 1 year ago

Hi,

I had to add trait bounds to a struct containing a BiHashMap to be able to derive the Default trait. This is usually not necessary, and I found it was because the trait bounds were unecessarily strict.

So I relaxed trait bounds where possible.