libcore: Get rid of move.

This commit is contained in:
Luqman Aden
2013-02-15 03:51:28 -05:00
committed by Luqman Aden
parent 78f3e0da70
commit 5912b1448c
30 changed files with 358 additions and 362 deletions

View File

@@ -273,7 +273,7 @@ impl Rng {
s = s + str::from_char(self.gen_char_from(charset));
i += 1u;
}
move s
s
}
/// Return a random byte string of the specified length
@@ -339,14 +339,14 @@ impl Rng {
r.push(item.item);
}
}
move r
r
}
/// Shuffle a vec
fn shuffle<T:Copy>(values: &[T]) -> ~[T] {
let mut m = vec::from_slice(values);
self.shuffle_mut(m);
move m
m
}
/// Shuffle a mutable vec in place