Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tmfink committed Apr 14, 2024
1 parent 814558a commit f52d37d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions capstone-rs/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 0 additions & 4 deletions capstone-rs/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f52d37d

Please sign in to comment.