mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
Merge pull request #6241 from cakebaker/factor_allow_dead_code
factor: suppress some "never used" warnings
This commit is contained in:
commit
40600f2419
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ use num_traits::{
|
||||||
};
|
};
|
||||||
use std::fmt::{Debug, Display};
|
use std::fmt::{Debug, Display};
|
||||||
|
|
||||||
|
#[allow(dead_code)] // Rust doesn't recognize the use in the macro
|
||||||
pub(crate) trait Int:
|
pub(crate) trait Int:
|
||||||
Display + Debug + PrimInt + OverflowingAdd + WrappingNeg + WrappingSub + WrappingMul
|
Display + Debug + PrimInt + OverflowingAdd + WrappingNeg + WrappingSub + WrappingMul
|
||||||
{
|
{
|
||||||
|
@ -23,6 +24,7 @@ pub(crate) trait Int:
|
||||||
fn as_u128(&self) -> u128;
|
fn as_u128(&self) -> u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)] // Rust doesn't recognize the use in the macro
|
||||||
pub(crate) trait DoubleInt: Int {
|
pub(crate) trait DoubleInt: Int {
|
||||||
/// An integer type with twice the width of `Self`.
|
/// An integer type with twice the width of `Self`.
|
||||||
/// In particular, multiplications (of `Int` values) can be performed in
|
/// In particular, multiplications (of `Int` values) can be performed in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue