Refactor formatter to use new 'self.int' helper function.

This commit is contained in:
KtorZ
2023-06-08 15:34:28 +02:00
parent 79a2174f0a
commit 0b7682306f
2 changed files with 24 additions and 4 deletions

View File

@@ -833,3 +833,16 @@ fn pipes_and_expressions() {
assert_fmt(src, expected);
}
#[test]
fn hex_and_numeric_underscore() {
let src = indoc! {r#"
fn foo() {
let a = 1_000_000
let b = 0xA4
let c = #[ 0xFD, 0x12, 0x00, 0x1B ]
}
"#};
assert_fmt(src, src);
}