@@ -69,6 +69,7 @@ impl Decimal128 {
69
69
/// let int = dec128.into_i32();
70
70
/// assert_eq!(int, num);
71
71
/// ```
72
+ #[ allow( clippy:: wrong_self_convention) ]
72
73
#[ deprecated( since = "0.15.0" , note = "Replaced by `to_i32`" ) ]
73
74
pub fn into_i32 ( & self ) -> i32 {
74
75
Into :: into ( self . inner )
@@ -98,6 +99,7 @@ impl Decimal128 {
98
99
/// let int = dec128.into_u32();
99
100
/// assert_eq!(int, num);
100
101
/// ```
102
+ #[ allow( clippy:: wrong_self_convention) ]
101
103
#[ deprecated( since = "0.15.0" , note = "Replaced by `to_u32`" ) ]
102
104
pub fn into_u32 ( & self ) -> u32 {
103
105
Into :: into ( self . inner )
@@ -253,7 +255,7 @@ mod test {
253
255
254
256
assert ! ( !dec128. is_nan( ) ) ;
255
257
assert ! ( !dec128. is_zero( ) ) ;
256
- assert_eq ! ( dec128. into_i32 ( ) , num) ;
258
+ assert_eq ! ( dec128. to_i32 ( ) , num) ;
257
259
}
258
260
259
261
#[ test]
@@ -263,7 +265,7 @@ mod test {
263
265
264
266
assert ! ( !dec128. is_nan( ) ) ;
265
267
assert ! ( !dec128. is_zero( ) ) ;
266
- assert_eq ! ( dec128. into_u32 ( ) , num) ;
268
+ assert_eq ! ( dec128. to_u32 ( ) , num) ;
267
269
}
268
270
269
271
#[ test]
0 commit comments