From f7bd370818b003f57e47a1894ff0d791ad23628d Mon Sep 17 00:00:00 2001 From: Irfan Hudda Date: Thu, 20 Apr 2017 19:51:38 +0530 Subject: [PATCH] remove redundant wrapping_sub --- src/libcore/num/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 15ffe9db8ce6..bef7a20cd7f3 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -2348,7 +2348,7 @@ macro_rules! uint_impl { if self == 0 { 1 } else { - one << (bits - self.wrapping_sub(one).leading_zeros() as usize) + one << (bits - (self - one).leading_zeros() as usize) } }