From 668f9cb0e0ea45c6d2cdc802dbe99b12f5623fff Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Fri, 2 Feb 2024 13:33:16 -0500 Subject: Rust API : Misc clippy fixes --- rust/src/architecture.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rust/src/architecture.rs') 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(); -- cgit v1.3.1