Skip to content

Commit e59013a

Browse files
fix: migrate to to_string_with_radix
1 parent 88ea1f3 commit e59013a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/pretty-format/src

packages/pretty-format/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn print_number(val: &Number) -> String {
1515
if Object::is(val, &JsValue::from_f64(-0.0)) {
1616
"-0".to_owned()
1717
} else {
18-
val.to_string(10)
18+
val.to_string_with_radix(10)
1919
.expect("Number should be formatted as string.")
2020
.into()
2121
}
@@ -25,7 +25,7 @@ fn print_big_int(val: &BigInt) -> String {
2525
format!(
2626
"{}n",
2727
String::from(
28-
val.to_string(10)
28+
val.to_string_with_radix(10)
2929
.expect("Number should be formatted as string.")
3030
)
3131
)

0 commit comments

Comments
 (0)