From 9860fe10a19cc4997e58861df905f8dbe4de3c5b Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Wed, 24 Apr 2013 23:03:04 +1000 Subject: [PATCH] libcore: remove unnecessary deref --- src/libcore/rand.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/rand.rs b/src/libcore/rand.rs index 367278f66f321..cdf6a5bb63ded 100644 --- a/src/libcore/rand.rs +++ b/src/libcore/rand.rs @@ -698,7 +698,7 @@ impl Rng for @R { * generator. */ pub fn random() -> T { - (*task_rng()).gen() + task_rng().gen() } #[cfg(test)]