rand: Fix infinite recursion

`self` has type `&@Rand`, so `*self` will be of type `@Rand` which causes
this same impl to be called again.
This commit is contained in:
Philipp Brüschweiler 2013-04-28 13:31:49 +02:00
parent 5f7947aa52
commit 8627fc9726

View File

@ -690,7 +690,7 @@ pub fn task_rng() -> @IsaacRng {
// Allow direct chaining with `task_rng`
impl<R: Rng> Rng for @R {
fn next(&self) -> u32 { (*self).next() }
fn next(&self) -> u32 { (**self).next() }
}
/**