servo / uluru

A simple, fast, LRU cache implementation.
Mozilla Public License 2.0
190 stars 20 forks source link

Remove unsafe code in IterMut #16

Closed mbrubeck closed 3 years ago

mbrubeck commented 3 years ago

By making IterMut a "streaming" iterator, we can simplify its implementation and remove the unsafe code, because we no longer need to prove that each item it yields is unique.

With this change, uluru is now implemented in 100% safe Rust.

r? @jdm