Rollup merge of #124700 - scottmcm:unneeded_cast, r=Nilstrieb
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.
This commit is contained in:
commit
770567101c
1 changed files with 1 additions and 1 deletions
|
@ -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`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue