diff --git a/src/uint/shr.rs b/src/uint/shr.rs index 2393f6d..844abab 100644 --- a/src/uint/shr.rs +++ b/src/uint/shr.rs @@ -14,7 +14,7 @@ impl UInt { *a = b.clone(); } - let value = self.value.and_then(|a| Some(a >> other)); + let value = self.value.map(|a| a >> other); Ok(Self { bits, value }) } else { panic!("attempt to shift right with overflow") @@ -53,7 +53,7 @@ impl Shr for UInt< } } -impl<'a, const N: usize, T: PrimUInt, F: PrimeField, T2: PrimUInt> Shr for &'a UInt { +impl Shr for &UInt { type Output = UInt; #[tracing::instrument(target = "gr1cs", skip(self, other))]