treemap: get rid of some implicit vector copies
This commit is contained in:
parent
b91a51daca
commit
5b6c26b4e4
@ -745,8 +745,8 @@ fn u8_map() {
|
||||
let v1 = str::to_bytes(~"baz");
|
||||
let v2 = str::to_bytes(~"foobar");
|
||||
|
||||
m.insert(k1, v1);
|
||||
m.insert(k2, v2);
|
||||
m.insert(copy k1, copy v1);
|
||||
m.insert(copy k2, copy v2);
|
||||
|
||||
assert m.find(&k2) == Some(&v2);
|
||||
assert m.find(&k1) == Some(&v1);
|
||||
|
Loading…
Reference in New Issue
Block a user