tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 317a56c1335b2c775383b5b439c5ab28a6201b20
parent 4ec193dcc5a71c6f1d501b011ce5b7407820dc34
Author: Micah Elizabeth Scott <beth@torproject.org>
Date:   Mon, 14 Aug 2023 13:12:06 -0700

tor-c-equix: Fix clippy warning

Clippy found a transmute that could have been a reborrow.

Diffstat:
Msrc/ext/equix/src/lib.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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