Skip to content

Commit 06b1642

Browse files
authored
Remove unnecessary underscore from impl<T, const N: usize> Distribution<[T; N]> for StandardUniform (#1585)
- [ ] Added a `CHANGELOG.md` entry # Summary Remove the leading underscore from the `_rng` parameter of the `sample` method. # Motivation Because this parameter appears to be used. I think suppressing the `unused_variables` lint is unnecessary.
1 parent 49d76cd commit 06b1642

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/distr/other.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ where
237237
StandardUniform: Distribution<T>,
238238
{
239239
#[inline]
240-
fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; N] {
241-
array::from_fn(|_| _rng.random())
240+
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> [T; N] {
241+
array::from_fn(|_| rng.random())
242242
}
243243
}
244244

0 commit comments

Comments
 (0)