Skip to content

Commit

Permalink
finishing touches
Browse files Browse the repository at this point in the history
  • Loading branch information
Soveu committed Aug 9, 2024
1 parent cb0ac06 commit efdb663
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clippy_lints/src/pointer_in_nomem_asm_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ fn has_in_operand_pointer(cx: &LateContext<'_>, asm_op: &InlineAsmOperand<'_>) -
| InlineAsmOperand::Const { .. }
| InlineAsmOperand::SymFn { .. }
| InlineAsmOperand::Label { .. } => return false,
InlineAsmOperand::In { expr, .. } => expr,
InlineAsmOperand::InOut { expr, .. } => expr,
InlineAsmOperand::SplitInOut { in_expr, .. } => in_expr,
InlineAsmOperand::In { expr, .. } | InlineAsmOperand::InOut { expr, .. } => expr,
};

// This checks for raw ptrs, refs and function pointers - the last one
Expand Down

0 comments on commit efdb663

Please sign in to comment.