File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,11 @@ 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
+ }
209
+
206
210
207
211
/// Returns `true` if `self` is a multiple of `other`.
208
212
///
@@ -526,12 +530,6 @@ macro_rules! impl_integer_for_isize {
526
530
( gcd, lcm)
527
531
}
528
532
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
533
/// Returns `true` if the number is a multiple of `other`.
536
534
#[ inline]
537
535
fn is_multiple_of( & self , other: & Self ) -> bool {
@@ -893,12 +891,6 @@ macro_rules! impl_integer_for_usize {
893
891
( gcd, lcm)
894
892
}
895
893
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
894
/// Returns `true` if the number is a multiple of `other`.
903
895
#[ inline]
904
896
fn is_multiple_of( & self , other: & Self ) -> bool {
You can’t perform that action at this time.
0 commit comments