diff --git a/src/lib.rs b/src/lib.rs index 60ad4c9..30fce25 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -201,7 +201,11 @@ pub trait Integer: Sized + Num + PartialOrd + Ord + Eq { } /// Deprecated, use `is_multiple_of` instead. - fn divides(&self, other: &Self) -> bool; + #[deprecated(note = "Please use is_multiple_of instead")] + #[inline] + fn divides(&self, other: &Self) -> bool { + self.is_multiple_of(other) + } /// Returns `true` if `self` is a multiple of `other`. /// @@ -559,12 +563,6 @@ macro_rules! impl_integer_for_isize { (gcd, lcm) } - /// Deprecated, use `is_multiple_of` instead. - #[inline] - fn divides(&self, other: &Self) -> bool { - self.is_multiple_of(other) - } - /// Returns `true` if the number is a multiple of `other`. #[inline] fn is_multiple_of(&self, other: &Self) -> bool { @@ -926,12 +924,6 @@ macro_rules! impl_integer_for_usize { (gcd, lcm) } - /// Deprecated, use `is_multiple_of` instead. - #[inline] - fn divides(&self, other: &Self) -> bool { - self.is_multiple_of(other) - } - /// Returns `true` if the number is a multiple of `other`. #[inline] fn is_multiple_of(&self, other: &Self) -> bool {