diff options
author | Micah Elizabeth Scott <beth@torproject.org> | 2023-08-14 13:12:06 -0700 |
---|---|---|
committer | Micah Elizabeth Scott <beth@torproject.org> | 2023-08-15 09:52:30 -0700 |
commit | 317a56c1335b2c775383b5b439c5ab28a6201b20 (patch) | |
tree | 72e4dfe6d89d14104e0a434f1e221ca8f48ef656 /src/ext | |
parent | 4ec193dcc5a71c6f1d501b011ce5b7407820dc34 (diff) | |
download | tor-317a56c1335b2c775383b5b439c5ab28a6201b20.tar.gz tor-317a56c1335b2c775383b5b439c5ab28a6201b20.zip |
tor-c-equix: Fix clippy warning
Clippy found a transmute that could have been a reborrow.
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/equix/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext/equix/src/lib.rs b/src/ext/equix/src/lib.rs index 8eb163075a..716160b4d5 100644 --- a/src/ext/equix/src/lib.rs +++ b/src/ext/equix/src/lib.rs @@ -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 |