Skip to content

Commit

Permalink
libcore: remove unnecessary deref
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw committed Apr 24, 2013
1 parent 4a24f10 commit 9860fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/rand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 9860fe1

Please sign in to comment.