From f52d37d85ee148345021ce90d8b41bec09a1bfcb Mon Sep 17 00:00:00 2001 From: Travis Finkenauer Date: Sat, 13 Apr 2024 20:02:20 -0700 Subject: [PATCH] Fix clippy warnings --- capstone-rs/src/constants.rs | 1 + capstone-rs/src/instruction.rs | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/capstone-rs/src/constants.rs b/capstone-rs/src/constants.rs index 1d0c1c7d..495d5e71 100644 --- a/capstone-rs/src/constants.rs +++ b/capstone-rs/src/constants.rs @@ -160,6 +160,7 @@ macro_rules! define_impl_bitmask { => $getter:ident = $mask_constant:ident; )* ) => { + #[allow(clippy::redundant_closure_call)] impl < $($impl_lifetime),* > $struct < $($impl_lifetime),* > { /// Raw mask from Capstone pub(crate) fn $mask_getter(&self) -> $mask_getter_ty { diff --git a/capstone-rs/src/instruction.rs b/capstone-rs/src/instruction.rs index cce01f0f..946a50c6 100644 --- a/capstone-rs/src/instruction.rs +++ b/capstone-rs/src/instruction.rs @@ -375,10 +375,6 @@ impl<'a> Display for OwnedInsn<'a> { } } -/// Iterator over instruction group ids -#[derive(Debug, Clone)] -pub struct InsnGroupIter<'a>(slice::Iter<'a, InsnGroupIdInt>); - impl<'a> InsnDetail<'a> { #[cfg(feature = "full")] /// Returns the implicit read registers