Mask deprecation warnings on abs_sub
This commit is contained in:
parent
15949b257a
commit
b21c89de36
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue