rust/src/libstd/collections
Ulrik Sverdrup 836f32e769 Use vec![elt; n] where possible
The common pattern `iter::repeat(elt).take(n).collect::<Vec<_>>()` is
exactly equivalent to `vec![elt; n]`, do this replacement in the whole
tree.

(Actually, vec![] is smart enough to only call clone n - 1 times, while
the former solution would call clone n times, and this fact is
virtually irrelevant in practice.)
2015-07-09 11:05:32 +02:00
..
hash Use vec![elt; n] where possible 2015-07-09 11:05:32 +02:00
mod.rs Auto merge of #26192 - alexcrichton:features-clean, r=aturon 2015-06-18 19:14:52 +00:00