diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-06-26 14:04:15 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-06-26 14:08:16 -0700 |
| commit | ccd2394ff9ccff11950d0830aaeb74f4fabb7d9c (patch) | |
| tree | b3ae705168bf84b3f6273659edbf45c0e4c1a158 /src/libstd/map.rs | |
| parent | a08281616f5afcf7b134159a919e76829d2f2a8d (diff) | |
| download | rust-ccd2394ff9ccff11950d0830aaeb74f4fabb7d9c.tar.gz rust-ccd2394ff9ccff11950d0830aaeb74f4fabb7d9c.zip | |
perf: improved the core-std benchmark
Diffstat (limited to 'src/libstd/map.rs')
| -rw-r--r-- | src/libstd/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/map.rs b/src/libstd/map.rs index 7d1e7b599a0..00d4a5e6b31 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -326,7 +326,7 @@ Convert a set into a vector. fn vec_from_set<T: copy>(s: set<T>) -> [T]/~ { let mut v = []/~; s.each_key() {|k| - v += [k]/~; + vec::push(v, k); true }; v |
