From b21c89de36e448b6ad3e0c24031eeb358ac2268d Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 12 Jul 2016 00:34:55 -0700 Subject: [PATCH] Mask deprecation warnings on abs_sub --- traits/src/float.rs | 1 + traits/src/sign.rs | 1 + 2 files changed, 2 insertions(+) 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) }