File tree 1 file changed +5
-13
lines changed
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,11 @@ pub trait Integer: Sized + Num + PartialOrd + Ord + Eq {
201
201
}
202
202
203
203
/// Deprecated, use `is_multiple_of` instead.
204
- fn divides ( & self , other : & Self ) -> bool ;
204
+ #[ deprecated( note = "Please use is_multiple_of instead" ) ]
205
+ #[ inline]
206
+ fn divides ( & self , other : & Self ) -> bool {
207
+ self . is_multiple_of ( other)
208
+ }
205
209
206
210
/// Returns `true` if `self` is a multiple of `other`.
207
211
///
@@ -559,12 +563,6 @@ macro_rules! impl_integer_for_isize {
559
563
( gcd, lcm)
560
564
}
561
565
562
- /// Deprecated, use `is_multiple_of` instead.
563
- #[ inline]
564
- fn divides( & self , other: & Self ) -> bool {
565
- self . is_multiple_of( other)
566
- }
567
-
568
566
/// Returns `true` if the number is a multiple of `other`.
569
567
#[ inline]
570
568
fn is_multiple_of( & self , other: & Self ) -> bool {
@@ -926,12 +924,6 @@ macro_rules! impl_integer_for_usize {
926
924
( gcd, lcm)
927
925
}
928
926
929
- /// Deprecated, use `is_multiple_of` instead.
930
- #[ inline]
931
- fn divides( & self , other: & Self ) -> bool {
932
- self . is_multiple_of( other)
933
- }
934
-
935
927
/// Returns `true` if the number is a multiple of `other`.
936
928
#[ inline]
937
929
fn is_multiple_of( & self , other: & Self ) -> bool {
You can’t perform that action at this time.
0 commit comments