Skip to content

Commit

Permalink
Revert "libcore: remove unnecessary deref"
Browse files Browse the repository at this point in the history
This reverts commit 9860fe1.
  • Loading branch information
catamorphism committed Apr 25, 2013
1 parent 394f0d4 commit 472ea0b
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 @@ -801,7 +801,7 @@ pub fn task_rng() -> @IsaacRng {
* generator.
*/
pub fn random<T: Rand>() -> T {
task_rng().gen()
(*task_rng()).gen()
}

#[cfg(test)]
Expand Down

4 comments on commit 472ea0b

@bors
Copy link
Contributor

@bors bors commented on 472ea0b Apr 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from catamorphism
at catamorphism@472ea0b

@bors
Copy link
Contributor

@bors bors commented on 472ea0b Apr 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging catamorphism/rust/revert = 472ea0b into auto

@bors
Copy link
Contributor

@bors bors commented on 472ea0b Apr 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

catamorphism/rust/revert = 472ea0b merged ok, testing candidate = d72ca65

@bors
Copy link
Contributor

@bors bors commented on 472ea0b Apr 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.