auto merge of #6097 : Blei/rust/fix-rand, r=pnkfelix
`self` has type `&@Rand`, so `*self` will be of type `@Rand` which causes this same impl to be called again. Fixes #6061
This commit is contained in:
commit
cdd342bd34
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue