Skip to content

Commit

Permalink
Fix dogfood
Browse files Browse the repository at this point in the history
  • Loading branch information
roife committed Dec 30, 2023
1 parent 8290cad commit 3a8e3af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clippy_lints/src/casts/cast_possible_truncation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ pub(super) fn check(

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

0 comments on commit 3a8e3af

Please sign in to comment.