Fix formatter bugs

This commit is contained in:
2026-06-26 01:29:51 +02:00
parent e5509e89a4
commit 6c9c0e03d2
13 changed files with 173 additions and 84 deletions
+11 -4
View File
@@ -101,15 +101,22 @@ pub void test_block_expr() {
}
pub void test_if_expr() {
let x = if true { 1 } else { 2 };
let x = if true {
1
} else {
2
};
assert_eq!(x, 1);
let y = if false { 1 } else { 2 };
let y = if false {
1
} else {
2
};
assert_eq!(y, 2);
}
pub void test_range_expr() {
let r = 0..5;
let r = 0 .. 5;
let mut count = 0;
for i in r {
count++;