Skip to content

Commit babbd10

Browse files
committed
RUST-765 Remove deprecated conversion methods from Decimal128 (C-CONV)
1 parent 982b15e commit babbd10

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/decimal128.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,6 @@ impl Decimal128 {
7272
}
7373
}
7474

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-
9175
/// Construct a `Decimal128` from a `i32` number.
9276
///
9377
/// ```rust
@@ -102,22 +86,6 @@ impl Decimal128 {
10286
Into::into(self.inner)
10387
}
10488

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-
12189
/// Construct a `Decimal128` from a `i32` number.
12290
///
12391
/// ```rust

0 commit comments

Comments
 (0)