Skip to content

Commit

Permalink
Remove an unnecessary cast
Browse files Browse the repository at this point in the history
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
scottmcm committed May 4, 2024
1 parent 9fa862f commit b95d1b7
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 b95d1b7

Please sign in to comment.