remove superfluous derives from numbers

This commit is contained in:
Connor Skees 2020-08-19 03:48:59 -04:00
parent 849a8b4414
commit 617a421612
2 changed files with 2 additions and 7 deletions

View File

@ -7,7 +7,6 @@ use std::{
use num_bigint::BigInt;
use num_traits::{Signed, ToPrimitive, Zero};
#[derive(Eq, PartialEq)]
pub(crate) enum Integer {
Small(i64),
Big(BigInt),
@ -113,10 +112,6 @@ impl Zero for Integer {
Self::Big(v) => v.is_zero(),
}
}
fn set_zero(&mut self) {
*self = Self::zero()
}
}
impl Display for Integer {

View File

@ -226,7 +226,7 @@ impl Num for Number {
type FromStrRadixErr = ();
#[cold]
fn from_str_radix(_: &str, _: u32) -> Result<Self, Self::FromStrRadixErr> {
unreachable!()
unimplemented!()
}
}
@ -237,7 +237,7 @@ impl Signed for Number {
#[cold]
fn abs_sub(&self, _: &Self) -> Self {
unreachable!()
unimplemented!()
}
#[cold]