To work with Rust's borrow checker, we often have to make clones of URLs or other strings in order to capture in an Fn or FnMut e.g., async move { }. See #867 (review) for one such place and discussion.
We could wrap it in an Arc but that also might be overkill. What other options might we have to avoid cloning potentially large strings?
To work with Rust's borrow checker, we often have to make clones of URLs or other strings in order to capture in an
FnorFnMute.g.,async move { }. See #867 (review) for one such place and discussion.We could wrap it in an
Arcbut that also might be overkill. What other options might we have to avoid cloning potentially large strings?