Skip to content

Commit 1c3bfa4

Browse files
committed
libstd: Make vec_from_set pure
1 parent 82fd711 commit 1c3bfa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ pub fn set_add<K:Eq IterBytes Hash Const Copy>(set: Set<K>, key: K) -> bool {
382382
}
383383

384384
/// Convert a set into a vector.
385-
pub fn vec_from_set<T:Eq IterBytes Hash Copy>(s: Set<T>) -> ~[T] {
385+
pub pure fn vec_from_set<T:Eq IterBytes Hash Copy>(s: Set<T>) -> ~[T] {
386386
do vec::build_sized(s.size()) |push| {
387387
for s.each_key() |k| {
388388
push(k);

0 commit comments

Comments
 (0)