@@ -135,7 +135,8 @@ pub trait Integer: Sized + Num + PartialOrd + Ord + Eq {
135135 #[ inline]
136136 fn extended_gcd ( & self , other : & Self ) -> ExtendedGcd < Self >
137137 where
138- Self : Clone {
138+ Self : Clone ,
139+ {
139140 let mut s = ( Self :: zero ( ) , Self :: one ( ) ) ;
140141 let mut t = ( Self :: one ( ) , Self :: zero ( ) ) ;
141142 let mut r = ( other. clone ( ) , self . clone ( ) ) ;
@@ -173,7 +174,8 @@ pub trait Integer: Sized + Num + PartialOrd + Ord + Eq {
173174 #[ inline]
174175 fn extended_gcd_lcm ( & self , other : & Self ) -> ( ExtendedGcd < Self > , Self )
175176 where
176- Self : Clone + Signed {
177+ Self : Clone + Signed ,
178+ {
177179 ( self . extended_gcd ( other) , self . lcm ( other) )
178180 }
179181
@@ -412,7 +414,9 @@ macro_rules! impl_integer_for_isize {
412414 /// Calculates the Lowest Common Multiple (LCM) of the number and
413415 /// `other`.
414416 #[ inline]
415- fn lcm( & self , other: & Self ) -> Self { self . gcd_lcm( other) . 1 }
417+ fn lcm( & self , other: & Self ) -> Self {
418+ self . gcd_lcm( other) . 1
419+ }
416420
417421 /// Calculates the Greatest Common Divisor (GCD) and
418422 /// Lowest Common Multiple (LCM) of the number and `other`.
@@ -746,7 +750,9 @@ macro_rules! impl_integer_for_usize {
746750
747751 /// Calculates the Lowest Common Multiple (LCM) of the number and `other`.
748752 #[ inline]
749- fn lcm( & self , other: & Self ) -> Self { self . gcd_lcm( other) . 1 }
753+ fn lcm( & self , other: & Self ) -> Self {
754+ self . gcd_lcm( other) . 1
755+ }
750756
751757 /// Calculates the Greatest Common Divisor (GCD) and
752758 /// Lowest Common Multiple (LCM) of the number and `other`.
0 commit comments