Skip to content

Commit 0f028d7

Browse files
committed
rs: apply cargo clippy
1 parent 11fd350 commit 0f028d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

capstone-rs/src/arch/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ macro_rules! def_arch_details_struct {
750750
$iter_struct
751751

752752
impl<'a> $OperandIteratorLife {
753-
fn new(ops: &[$cs_arch_op]) -> $OperandIterator {
753+
fn new(ops: &[$cs_arch_op]) -> $OperandIterator<'_> {
754754
$OperandIterator(ops.iter())
755755
}
756756
}

capstone-rs/src/instruction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ impl InsnDetail<'_> {
472472
}
473473

474474
/// Architecture-specific detail
475-
pub fn arch_detail(&self) -> ArchDetail {
475+
pub fn arch_detail(&self) -> ArchDetail<'_> {
476476
macro_rules! def_arch_detail_match {
477477
(
478478
$( [ $ARCH:ident, $detail:ident, $insn_detail:ident, $arch:ident, $feature:literal ] )*

0 commit comments

Comments
 (0)