diff --git a/traits/src/float.rs b/traits/src/float.rs index f8c19ae..89941f7 100644 --- a/traits/src/float.rs +++ b/traits/src/float.rs @@ -1003,6 +1003,7 @@ macro_rules! float_impl { <$T>::min(self, other) } + #[allow(deprecated)] fn abs_sub(self, other: Self) -> Self { <$T>::abs_sub(self, other) } diff --git a/traits/src/sign.rs b/traits/src/sign.rs index d3ec866..c56ad25 100644 --- a/traits/src/sign.rs +++ b/traits/src/sign.rs @@ -86,6 +86,7 @@ macro_rules! signed_float_impl { /// less than or equal to `other`, otherwise the difference between`self` /// and `other` is returned. #[inline] + #[allow(deprecated)] fn abs_sub(&self, other: &$t) -> $t { <$t>::abs_sub(*self, *other) }