Skip to content

Commit 08deed6

Browse files
committed
Fix: allow compiling with Rust 1.15
1 parent d62a1e7 commit 08deed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/impls.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ pub fn fill_bytes_via_u64<R: Rng+?Sized>(rng: &mut R, dest: &mut [u8]) {
6868
}
6969

7070
macro_rules! impl_uint_from_fill {
71-
($self:expr, $ty:ty, $N:expr) => ({
71+
($rng:expr, $ty:ty, $N:expr) => ({
7272
debug_assert!($N == size_of::<$ty>());
7373

7474
let mut int: $ty = 0;
7575
unsafe {
7676
let ptr = &mut int as *mut $ty as *mut u8;
7777
let slice = slice::from_raw_parts_mut(ptr, $N);
78-
$self.fill_bytes(slice);
78+
$rng.fill_bytes(slice);
7979
}
8080
int
8181
});

0 commit comments

Comments
 (0)