File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -72,22 +72,6 @@ impl Decimal128 {
72
72
}
73
73
}
74
74
75
- /// Construct a `Decimal128` from a `i32` number.
76
- ///
77
- /// ```rust
78
- /// use bson::decimal128::Decimal128;
79
- ///
80
- /// let num: i32 = 23;
81
- /// let dec128 = Decimal128::from_i32(num);
82
- /// let int = dec128.into_i32();
83
- /// assert_eq!(int, num);
84
- /// ```
85
- #[ allow( clippy:: wrong_self_convention) ]
86
- #[ deprecated( since = "0.15.0" , note = "Replaced by `to_i32`" ) ]
87
- pub fn into_i32 ( & self ) -> i32 {
88
- Into :: into ( self . inner )
89
- }
90
-
91
75
/// Construct a `Decimal128` from a `i32` number.
92
76
///
93
77
/// ```rust
@@ -102,22 +86,6 @@ impl Decimal128 {
102
86
Into :: into ( self . inner )
103
87
}
104
88
105
- /// Construct a `Decimal128` from a `i32` number.
106
- ///
107
- /// ```rust
108
- /// use bson::decimal128::Decimal128;
109
- ///
110
- /// let num: u32 = 23;
111
- /// let dec128 = Decimal128::from_u32(num);
112
- /// let int = dec128.into_u32();
113
- /// assert_eq!(int, num);
114
- /// ```
115
- #[ allow( clippy:: wrong_self_convention) ]
116
- #[ deprecated( since = "0.15.0" , note = "Replaced by `to_u32`" ) ]
117
- pub fn into_u32 ( & self ) -> u32 {
118
- Into :: into ( self . inner )
119
- }
120
-
121
89
/// Construct a `Decimal128` from a `i32` number.
122
90
///
123
91
/// ```rust
You can’t perform that action at this time.
0 commit comments