File tree 1 file changed +4
-13
lines changed
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,10 @@ pub trait Integer: Sized + Num + PartialOrd + Ord + Eq {
202
202
203
203
/// Deprecated, use `is_multiple_of` instead.
204
204
#[ deprecated( note = "Please use is_multiple_of instead" ) ]
205
- fn divides ( & self , other : & Self ) -> bool ;
205
+ #[ inline]
206
+ fn divides ( & self , other : & Self ) -> bool {
207
+ self . is_multiple_of ( other)
208
+ }
206
209
207
210
/// Returns `true` if `self` is a multiple of `other`.
208
211
///
@@ -526,12 +529,6 @@ macro_rules! impl_integer_for_isize {
526
529
( gcd, lcm)
527
530
}
528
531
529
- /// Deprecated, use `is_multiple_of` instead.
530
- #[ inline]
531
- fn divides( & self , other: & Self ) -> bool {
532
- self . is_multiple_of( other)
533
- }
534
-
535
532
/// Returns `true` if the number is a multiple of `other`.
536
533
#[ inline]
537
534
fn is_multiple_of( & self , other: & Self ) -> bool {
@@ -893,12 +890,6 @@ macro_rules! impl_integer_for_usize {
893
890
( gcd, lcm)
894
891
}
895
892
896
- /// Deprecated, use `is_multiple_of` instead.
897
- #[ inline]
898
- fn divides( & self , other: & Self ) -> bool {
899
- self . is_multiple_of( other)
900
- }
901
-
902
893
/// Returns `true` if the number is a multiple of `other`.
903
894
#[ inline]
904
895
fn is_multiple_of( & self , other: & Self ) -> bool {
You can’t perform that action at this time.
0 commit comments