libcore: remove unnecessary deref

This commit is contained in:
Huon Wilson 2013-04-24 23:03:04 +10:00
parent 4a24f10ac6
commit 9860fe10a1

View File

@ -698,7 +698,7 @@ impl<R: Rng> Rng for @R {
* generator.
*/
pub fn random<T: Rand>() -> T {
(*task_rng()).gen()
task_rng().gen()
}
#[cfg(test)]