diff options
Diffstat (limited to 'rust/src/architecture.rs')
| -rw-r--r-- | rust/src/architecture.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index f5aed09e..df34f1fe 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -997,7 +997,7 @@ impl Intrinsic for crate::architecture::CoreIntrinsic { let ret = slice::from_raw_parts_mut(inputs, count) .iter() - .map(|input| NameAndType::from_raw(input)) + .map(NameAndType::from_raw) .collect(); BNFreeNameAndTypeList(inputs, count); @@ -2405,7 +2405,7 @@ where unsafe { *count = res.len(); - if res.len() == 0 { + if res.is_empty() { ptr::null_mut() } else { let raw = res.as_mut_ptr(); @@ -2456,7 +2456,7 @@ where unsafe { *count = res.len(); - if res.len() == 0 { + if res.is_empty() { ptr::null_mut() } else { let raw = res.as_mut_ptr(); |
