diff --git a/src/bits.rs b/src/bits.rs index 82418b7d..e2f7565c 100644 --- a/src/bits.rs +++ b/src/bits.rs @@ -538,118 +538,6 @@ impl_bit_op!(BitOr, bitor, BitOrAssign, bitor_assign); impl_bit_op!(BitAnd, bitand, BitAndAssign, bitand_assign); impl_bit_op!(BitXor, bitxor, BitXorAssign, bitxor_assign); -// impl ShlAssign for Uint { #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shl_assign(&mut self, rhs: usize) { -// *self = self.wrapping_shl(rhs); -// } -// } - -// impl ShlAssign<&usize> for Uint { #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shl_assign(&mut self, rhs: &usize) { -// *self = self.wrapping_shl(*rhs); -// } -// } - -// impl Shl for Uint -// { type Output = Self; - -// #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shl(self, rhs: usize) -> Self { -// self.wrapping_shl(rhs) -// } -// } - -// impl Shl for &Uint -// { type Output = Uint; - -// #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shl(self, rhs: usize) -> Self::Output { -// self.wrapping_shl(rhs) -// } -// } - -// impl Shl<&usize> for Uint -// { type Output = Self; - -// #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shl(self, rhs: &usize) -> Self { -// self.wrapping_shl(*rhs) -// } -// } - -// impl Shl<&usize> for &Uint { type Output = Uint; - -// #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shl(self, rhs: &usize) -> Self::Output { -// self.wrapping_shl(*rhs) -// } -// } - -// impl ShrAssign for Uint { #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shr_assign(&mut self, rhs: usize) { -// *self = self.wrapping_shr(rhs); -// } -// } - -// impl ShrAssign<&usize> for Uint { #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shr_assign(&mut self, rhs: &usize) { -// *self = self.wrapping_shr(*rhs); -// } -// } - -// impl Shr for Uint -// { type Output = Self; - -// #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shr(self, rhs: usize) -> Self { -// self.wrapping_shr(rhs) -// } -// } - -// impl Shr for &Uint -// { type Output = Uint; - -// #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shr(self, rhs: usize) -> Self::Output { -// self.wrapping_shr(rhs) -// } -// } - -// impl Shr<&usize> for Uint -// { type Output = Self; - -// #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shr(self, rhs: &usize) -> Self { -// self.wrapping_shr(*rhs) -// } -// } - -// impl Shr<&usize> for &Uint { type Output = Uint; - -// #[allow(clippy::inline_always)] -// #[inline(always)] -// fn shr(self, rhs: &usize) -> Self::Output { -// self.wrapping_shr(*rhs) -// } -// } - macro_rules! impl_shift { (@main $u:ty) => { impl Shl<$u> for Uint {