`let _ = the_cache.iter()` is obvious workaround, but less readable and maintainable. Removing expired elements can be significant if their destructors do something, so that function may be called periodically on timer.