We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3215326 commit c59bef7Copy full SHA for c59bef7
library/core/src/num/int_macros.rs
@@ -3876,7 +3876,7 @@ macro_rules! int_impl {
3876
#[unstable(feature = "clamp_magnitude", issue = "148519")]
3877
#[inline]
3878
pub fn clamp_magnitude(self, limit: $UnsignedT) -> Self {
3879
- if let Ok(limit) = limit.try_into::<$SelfT>() {
+ if let Ok(limit) = core::convert::TryInto::<$SelfT>::try_into(limit) {
3880
self.clamp(-limit, limit)
3881
} else {
3882
self
0 commit comments