(&mut self)
| 54 | } |
| 55 | |
| 56 | fn evict_lru(&mut self) { |
| 57 | while let Some(oldest) = self.order.pop_front() { |
| 58 | if self.values.remove(&oldest).is_some() { |
| 59 | break; |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | #[cfg(all(test, not(target_arch = "wasm32")))] |
no outgoing calls
no test coverage detected