You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CacheKey constructor should take Request by reference #24353
A-networkC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-cleanupNo impact; the issue is one of maintainability or tidiness.
In CacheKey's new method in http_cache.rs it takes a Request argument by value, but then it calls a method on it that only needs a borrowed value. We clone request objects every time we call CacheKey::new, and this is wasteful.
Code: components/net/http_cache.rs
No need to run tests; if it builds, that's good enough for a pull request.
A-networkC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-cleanupNo impact; the issue is one of maintainability or tidiness.
Activity
highfive commentedon Oct 3, 2019
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the
#servochannel in IRC.If you intend to work on this issue, then add
@highfive: assign meto your comment, and I'll assign this to you. 😄Tugdual commentedon Oct 3, 2019
@highfive: assign me
highfive commentedon Oct 3, 2019
Hey @Tugdual! Thanks for your interest in working on this issue. It's now assigned to you!
PeaceRebel commentedon Oct 3, 2019
@jdm , I'm new to rust. Instead of cloning, passing a reference would get it done, right?
jdm commentedon Oct 3, 2019
@PeaceRebel Yes, that is what I suggested. It looks like @Tugdual is working on this, however.
Auto merge of #24374 - Tugdual:tug-by-ref-argument, r=jdm