1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 05:57:46 +00:00

factor::numeric::Int: Remove from_u128 method

It was unused, the debug assertions only need `to_u128`.
This commit is contained in:
nicoo 2020-07-21 19:48:07 +02:00 committed by Roy Ivy III
parent 1172af09c0
commit 17c69674eb

View file

@ -219,8 +219,6 @@ pub(crate) trait Int:
fn from_u64(n: u64) -> Self; fn from_u64(n: u64) -> Self;
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
fn as_u128(&self) -> u128; fn as_u128(&self) -> u128;
#[cfg(debug_assertions)]
fn from_u128(n: u64) -> Self;
} }
pub(crate) trait DoubleInt: Int { pub(crate) trait DoubleInt: Int {
@ -243,10 +241,6 @@ macro_rules! int {
fn as_u128(&self) -> u128 { fn as_u128(&self) -> u128 {
*self as u128 *self as u128
} }
#[cfg(debug_assertions)]
fn from_u128(n: u64) -> Self {
n as _
}
} }
}; };
} }