summaryrefslogtreecommitdiff
path: root/rust/src/architecture.rs
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2024-02-02 13:33:16 -0500
committerKyleMiles <krm504@nyu.edu>2024-02-02 13:33:16 -0500
commit668f9cb0e0ea45c6d2cdc802dbe99b12f5623fff (patch)
tree35bfa06ed37d60cbc45e2a26b6cb7c432f41c7fe /rust/src/architecture.rs
parentf682ca69b356755fe6c06bcdd8f4fab73f7d2c78 (diff)
Rust API : Misc clippy fixes
Diffstat (limited to 'rust/src/architecture.rs')
-rw-r--r--rust/src/architecture.rs6
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();