jeromefroe / lru-rs

An implementation of a LRU cache
https://docs.rs/lru/
MIT License
643 stars 106 forks source link

Clone is only implemented for the default hasher #198

Open Fuuzetsu opened 5 months ago

Fuuzetsu commented 5 months ago

If you have a for example LruCache<K, V, fxhash::FxBuildHasher> then this is no longer Clone. I think this probably just an oversight in Clone impl which is only over LruCache<K, V>.

jeromefroe commented 5 months ago

@Fuuzetsu you're right, this was just an oversight. I don't think I'll have time to get to it soon, but happy to review any PR's if you're able to take a stab at making the change!