Skip to content

Commit d874907

Browse files
committed
Fix clippy::pattern_type_mismatch by using ref binding instead of matching on reference
1 parent 7fde971 commit d874907

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/intrinsic/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ impl<'gcc, 'tcx> ArgAbiExt<'gcc, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
734734
if self.is_ignore() {
735735
return;
736736
}
737-
if let PassMode::Indirect { attrs, meta_attrs: None, .. } = &self.mode {
737+
if let PassMode::Indirect { ref attrs, meta_attrs: None, .. } = self.mode {
738738
let align = attrs.pointee_align.unwrap_or(self.layout.align.abi);
739739
OperandValue::Ref(PlaceValue::new_sized(val, align)).store(bx, dst)
740740
} else if self.is_unsized_indirect() {

0 commit comments

Comments
 (0)