Skip to content

Commit

Permalink
Rollup merge of #124700 - scottmcm:unneeded_cast, r=Nilstrieb
Browse files Browse the repository at this point in the history
Remove an unnecessary cast

Very minor thing, obviously, but I randomly saw this unnecessary cast showing up in the UbChecks, so might as well get rid of it.
  • Loading branch information
matthiaskrgr authored May 4, 2024
2 parents b871137 + b95d1b7 commit 7705671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/uint_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ macro_rules! uint_impl {
without modifying the original"]
#[inline(always)]
pub const fn count_ones(self) -> u32 {
return intrinsics::ctpop(self as $ActualT);
return intrinsics::ctpop(self);
}

/// Returns the number of zeros in the binary representation of `self`.
Expand Down

0 comments on commit 7705671

Please sign in to comment.