mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 13:37:48 +00:00
factor::numeric::Int: Remove from_u128
method
It was unused, the debug assertions only need `to_u128`.
This commit is contained in:
parent
1172af09c0
commit
17c69674eb
1 changed files with 0 additions and 6 deletions
|
@ -219,8 +219,6 @@ pub(crate) trait Int:
|
|||
fn from_u64(n: u64) -> Self;
|
||||
#[cfg(debug_assertions)]
|
||||
fn as_u128(&self) -> u128;
|
||||
#[cfg(debug_assertions)]
|
||||
fn from_u128(n: u64) -> Self;
|
||||
}
|
||||
|
||||
pub(crate) trait DoubleInt: Int {
|
||||
|
@ -243,10 +241,6 @@ macro_rules! int {
|
|||
fn as_u128(&self) -> u128 {
|
||||
*self as u128
|
||||
}
|
||||
#[cfg(debug_assertions)]
|
||||
fn from_u128(n: u64) -> Self {
|
||||
n as _
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue