diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-05-04 01:19:12 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-05-04 01:25:39 -0700 |
| commit | b95d1b716f938b1ae0fb42fc2cb1ddb94a7b7166 (patch) | |
| tree | 77d41b70dc54eab77b4711fcacf3a282eadae2a4 | |
| parent | 9fa862ff29ccfea885f8b1f33f4a507d456ae551 (diff) | |
| download | rust-b95d1b716f938b1ae0fb42fc2cb1ddb94a7b7166.tar.gz rust-b95d1b716f938b1ae0fb42fc2cb1ddb94a7b7166.zip | |
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.
| -rw-r--r-- | library/core/src/num/uint_macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs index 9effa279b48..6682f875eb8 100644 --- a/library/core/src/num/uint_macros.rs +++ b/library/core/src/num/uint_macros.rs @@ -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`. |
