summaryrefslogtreecommitdiff
path: root/rust/src/architecture.rs
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2024-05-10 12:05:45 -0400
committerKyleMiles <krm504@nyu.edu>2024-05-10 12:05:45 -0400
commit0ace079eb70b0c999914a1e95a3eb1324a3b19d8 (patch)
treef87d9f7a3e510f153a3fbbbe58160d13cd2c51ad /rust/src/architecture.rs
parentadde27cfa50f7ef70821cecb71967d538962f7b3 (diff)
Rust API : Misc cargo clippy fixes
Diffstat (limited to 'rust/src/architecture.rs')
-rw-r--r--rust/src/architecture.rs4
1 files changed, 2 insertions, 2 deletions
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::<A, F>),
getEndianness: Some(cb_endianness::<A>),
getAddressSize: Some(cb_address_size::<A>),