@@ -69,6 +69,7 @@ impl Decimal128 {
6969 /// let int = dec128.into_i32();
7070 /// assert_eq!(int, num);
7171 /// ```
72+ #[ allow( clippy:: wrong_self_convention) ]
7273 #[ deprecated( since = "0.15.0" , note = "Replaced by `to_i32`" ) ]
7374 pub fn into_i32 ( & self ) -> i32 {
7475 Into :: into ( self . inner )
@@ -98,6 +99,7 @@ impl Decimal128 {
9899 /// let int = dec128.into_u32();
99100 /// assert_eq!(int, num);
100101 /// ```
102+ #[ allow( clippy:: wrong_self_convention) ]
101103 #[ deprecated( since = "0.15.0" , note = "Replaced by `to_u32`" ) ]
102104 pub fn into_u32 ( & self ) -> u32 {
103105 Into :: into ( self . inner )
@@ -253,7 +255,7 @@ mod test {
253255
254256 assert ! ( !dec128. is_nan( ) ) ;
255257 assert ! ( !dec128. is_zero( ) ) ;
256- assert_eq ! ( dec128. into_i32 ( ) , num) ;
258+ assert_eq ! ( dec128. to_i32 ( ) , num) ;
257259 }
258260
259261 #[ test]
@@ -263,7 +265,7 @@ mod test {
263265
264266 assert ! ( !dec128. is_nan( ) ) ;
265267 assert ! ( !dec128. is_zero( ) ) ;
266- assert_eq ! ( dec128. into_u32 ( ) , num) ;
268+ assert_eq ! ( dec128. to_u32 ( ) , num) ;
267269 }
268270
269271 #[ test]
0 commit comments