treemap: get rid of some implicit vector copies

This commit is contained in:
Daniel Micay 2013-02-06 02:10:53 -05:00
parent b91a51daca
commit 5b6c26b4e4

View File

@ -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);