Skip to content

Commit b95d1b7

Browse files
committed
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.
1 parent 9fa862f commit b95d1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/uint_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ macro_rules! uint_impl {
7777
without modifying the original"]
7878
#[inline(always)]
7979
pub const fn count_ones(self) -> u32 {
80-
return intrinsics::ctpop(self as $ActualT);
80+
return intrinsics::ctpop(self);
8181
}
8282

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

0 commit comments

Comments
 (0)