Skip to content

Commit aa4fe08

Browse files
committed
fix test failures
1 parent 422e16a commit aa4fe08

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/decimal128.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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]

tests/modules/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn non_trailing_comma() {
102102
"b": { "ok": "then" }
103103
};
104104

105-
let expected = "{{ a: \"foo\", b: {{ ok: \"then\" }} }}".to_string();
105+
let expected = "{ a: \"foo\", b: { ok: \"then\" } }".to_string();
106106
assert_eq!(expected, format!("{}", doc));
107107
}
108108

@@ -113,7 +113,7 @@ fn non_trailing_comma_with_rockets() {
113113
"b" => { "ok": "then" }
114114
};
115115

116-
let expected = "{{ a: \"foo\", b: {{ ok: \"then\" }} }}".to_string();
116+
let expected = "{ a: \"foo\", b: { ok: \"then\" } }".to_string();
117117
assert_eq!(expected, format!("{}", doc));
118118
}
119119

0 commit comments

Comments
 (0)