From 0ace079eb70b0c999914a1e95a3eb1324a3b19d8 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Fri, 10 May 2024 12:05:45 -0400 Subject: Rust API : Misc cargo clippy fixes --- rust/src/architecture.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/architecture.rs') diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index 9aee0b16..713e8bf1 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -2442,7 +2442,7 @@ where if !nt.is_null() { unsafe { let name_and_types = Box::from_raw(ptr::slice_from_raw_parts_mut(nt, count)); - for nt in name_and_types.into_iter() { + for nt in name_and_types.iter() { Ref::new(NameAndType::from_raw(nt)); } } @@ -2674,7 +2674,7 @@ where let raw = Box::into_raw(Box::new(uninit_arch)); let mut custom_arch = BNCustomArchitecture { - context: raw as *mut ArchitectureBuilder<_, _> as *mut _, + context: raw as *mut _, init: Some(cb_init::), getEndianness: Some(cb_endianness::), getAddressSize: Some(cb_address_size::), -- cgit v1.3.1