mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
factor: suppress some "never used" warnings
This commit is contained in:
parent
11c4259a9a
commit
d60fe6e9e9
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ use num_traits::{
|
|||
};
|
||||
use std::fmt::{Debug, Display};
|
||||
|
||||
#[allow(dead_code)] // Rust doesn't recognize the use in the macro
|
||||
pub(crate) trait Int:
|
||||
Display + Debug + PrimInt + OverflowingAdd + WrappingNeg + WrappingSub + WrappingMul
|
||||
{
|
||||
|
@ -23,6 +24,7 @@ pub(crate) trait Int:
|
|||
fn as_u128(&self) -> u128;
|
||||
}
|
||||
|
||||
#[allow(dead_code)] // Rust doesn't recognize the use in the macro
|
||||
pub(crate) trait DoubleInt: Int {
|
||||
/// An integer type with twice the width of `Self`.
|
||||
/// In particular, multiplications (of `Int` values) can be performed in
|
||||
|
|
Loading…
Reference in a new issue