mirror of
https://github.com/servo/servo
synced 2026-05-11 01:22:19 +02:00
Writing `termination_reason` in the closure in `http_network_fetch()` had no effect, as the response is captured by value, and cannot be captured by mutable reference as it is needed later in the outer function. This is flagged as a warning with Rust 1.92: https://github.com/servo/servo/actions/runs/21750902723/job/62748597306?pr=42402 Note: I don't understand this code deeply, I was just trying my best to fix the warning. I'm more than happy to close this PR or change the code if someone more familiar has a better idea of how to fix it. Testing: Existing tests, no behaviour change. Signed-off-by: Alice Boxhall <alice@igalia.com>