Skip to content
Snippets Groups Projects
Commit 317a56c1 authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

tor-c-equix: Fix clippy warning

Clippy found a transmute that could have been a reborrow.
parent 4ec193dc
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ impl HashX {
},
}
unsafe extern "C" fn wrapper(buffer: *mut u64, callback: *mut c_void) {
let callback: &mut RngCallback = unsafe { mem::transmute(callback) };
let callback = &mut *(callback as *mut RngCallback);
buffer.write(callback(buffer.read()));
}
result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment