We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f861c commit 3d818a6Copy full SHA for 3d818a6
src/custom.rs
@@ -79,7 +79,7 @@ macro_rules! register_custom_getrandom {
79
// We use an extern "C" function to get the guarantees of a stable ABI.
80
#[no_mangle]
81
extern "C" fn __getrandom_custom(dest: *mut u8, len: usize) -> u32 {
82
- let f: fn(&mut [u8]) -> Result<(), ::getrandom::Error> = $path;
+ let f: fn(&mut [u8]) -> Result<(), $crate::Error> = $path;
83
let slice = unsafe { ::core::slice::from_raw_parts_mut(dest, len) };
84
match f(slice) {
85
Ok(()) => 0,
0 commit comments