Skip to content

Commit 26697c3

Browse files
committed
Remove DVec from workcache
1 parent 9324f49 commit 26697c3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/libstd/workcache.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use serialize::{Encoder, Encodable, Decoder, Decodable};
1616
use sort;
1717

1818
use core::cmp;
19-
use core::dvec;
2019
use core::either::{Either, Left, Right};
2120
use core::io;
2221
use core::option;
@@ -141,13 +140,12 @@ type WorkMap = LinearMap<WorkKey, ~str>;
141140

142141
pub impl<S: Encoder> WorkMap: Encodable<S> {
143142
fn encode(&self, s: &S) {
144-
let d = dvec::DVec();
143+
let mut d = ~[];
145144
for self.each |&(k, v)| {
146145
d.push((copy *k, copy *v))
147146
}
148-
let mut v = d.get();
149-
sort::tim_sort(v);
150-
v.encode(s)
147+
sort::tim_sort(d);
148+
d.encode(s)
151149
}
152150
}
153151

0 commit comments

Comments
 (0)