sdleffler / qp-trie-rs

An idiomatic and fast QP-trie implementation in pure Rust.
Mozilla Public License 2.0
95 stars 24 forks source link

Implement Default even when the keys and values don't #27

Closed meithecatte closed 3 years ago

meithecatte commented 3 years ago

The derived implementation of Default adds K: Default and V: Default as bounds. This is not necessary, as the constructed value doesn't actually contain any keys or values. Implementing Default manually makes it available in more cases.

sdleffler commented 3 years ago

Nice catch, thank you!

sdleffler commented 3 years ago

Published as 0.7.7.