Skip to content

Commit aa8429c

Browse files
committed
Fix dogfood
1 parent 8290cad commit aa8429c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/casts/cast_possible_truncation.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ pub(super) fn check(
131131

132132
let cast_from_ptr_size = def.repr().int.map_or(true, |ty| matches!(ty, IntegerType::Pointer(_),));
133133
let suffix = match (cast_from_ptr_size, is_isize_or_usize(cast_to)) {
134-
(false, false) if from_nbits > to_nbits => "",
135-
(true, false) if from_nbits > to_nbits => "",
134+
(true | false, false) if from_nbits > to_nbits => "",
136135
(false, true) if from_nbits > 64 => "",
137136
(false, true) if from_nbits > 32 => " on targets with 32-bit wide pointers",
138137
_ => return,

0 commit comments

Comments
 (0)