1
Fork 0

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:
Matthias Krüger 2024-05-04 12:37:24 +02:00 committed by GitHub
commit 770567101c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,7 @@ macro_rules! uint_impl {
without modifying the original"] without modifying the original"]
#[inline(always)] #[inline(always)]
pub const fn count_ones(self) -> u32 { 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`. /// Returns the number of zeros in the binary representation of `self`.