Skip to content

Commit ee0c538

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 ee0c538

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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`.

src/tools/cargo

Submodule cargo updated 54 files

0 commit comments

Comments
 (0)