From d60fe6e9e9d564b24e9f3fb4ad4006377606323f Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 15 Apr 2024 16:40:11 +0200 Subject: [PATCH] factor: suppress some "never used" warnings --- src/uu/factor/src/numeric/traits.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uu/factor/src/numeric/traits.rs b/src/uu/factor/src/numeric/traits.rs index c3528a4ad..ea69e82c2 100644 --- a/src/uu/factor/src/numeric/traits.rs +++ b/src/uu/factor/src/numeric/traits.rs @@ -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