remove superfluous trait impls for Number

This commit is contained in:
ConnorSkees 2020-04-26 23:06:32 -04:00
parent 6fca360b81
commit a746d81013

View File

@ -134,27 +134,6 @@ impl Signed for Number {
}
}
impl fmt::LowerHex for Number {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{:0>2x}", self.val.to_integer())
}
}
impl From<BigInt> for Number {
fn from(b: BigInt) -> Self {
Number {
val: BigRational::from_integer(b),
}
}
}
impl From<Number> for BigInt {
#[inline]
fn from(b: Number) -> Self {
b.to_integer()
}
}
macro_rules! from_integer {
($ty:ty) => {
impl From<$ty> for Number {