mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
libcore: remove unnecessary deref
This commit is contained in:
parent
4a24f10ac6
commit
9860fe10a1
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user