3 ms·
Assuming the keys are Hash + Ord, wouldn't that just be: for (k,v) in &src { dst.insert(k,v); } ?
by a1369209993 7y ago
Assuming the keys are Hash + Ord, wouldn't that just be:
for (k,v) in &src
{ dst.insert(k,v); }
?
- StavrosK 7y agoYes, that's what I ended up doing, but the error confused me and I ended up looking for a less hacky way for more than an hour until I said "fuck it" and just did that.