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:
parent
5f7947aa52
commit
8627fc9726
@ -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() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user