Skip to content

Commit

Permalink
revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Sep 27, 2024
1 parent da637dd commit 38035c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ mod test {

#[test]
fn test_rng_mut_ref() {
fn use_rng(r: &mut impl Rng) {
fn use_rng(mut r: impl Rng) {
let _ = r.next_u32();
}

Expand All @@ -566,7 +566,7 @@ mod test {
r.next_u32();
r.random::<i32>();
assert_eq!(r.gen_range(0..1), 0);
let _c: u8 = Standard.sample(r);
let _c: u8 = Standard.sample(&mut r);
}

#[test]
Expand Down

0 comments on commit 38035c4

Please sign in to comment.