From 3479c054c06b69c001096a059f6ced24eba1d56c Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 17 Mar 2024 09:21:47 +0000 Subject: differential tests: unnecessary mut --- differential-tests/tests/capstone-differential.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/differential-tests/tests/capstone-differential.rs b/differential-tests/tests/capstone-differential.rs index 7bfc7b4..7ca033e 100644 --- a/differential-tests/tests/capstone-differential.rs +++ b/differential-tests/tests/capstone-differential.rs @@ -361,7 +361,7 @@ fn capstone_differential() { unsafe { capstone_sys::cs_open(capstone_sys::cs_arch::CS_ARCH_ARM64, capstone_sys::cs_mode(0), &mut csh as *mut capstone_sys::csh) }, 0 ); - let mut cs_insn: *mut capstone_sys::cs_insn = unsafe { libc::malloc(std::mem::size_of::()) as *mut capstone_sys::cs_insn }; + let cs_insn: *mut capstone_sys::cs_insn = unsafe { libc::malloc(std::mem::size_of::()) as *mut capstone_sys::cs_insn }; /* let cs = Capstone::new() .arm64() -- cgit v1.1