Skip to content

Commit 9860fe1

Browse files
committed
libcore: remove unnecessary deref
1 parent 4a24f10 commit 9860fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/rand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ impl<R: Rng> Rng for @R {
698698
* generator.
699699
*/
700700
pub fn random<T: Rand>() -> T {
701-
(*task_rng()).gen()
701+
task_rng().gen()
702702
}
703703

704704
#[cfg(test)]

0 commit comments

Comments
 (0)