Skip to content

Commit e266ebc

Browse files
committed
Fix test cases to match cargo dev fmt
1 parent cc6512c commit e266ebc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/option_if_let_else.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn test_map_or_else(arg: Option<u32>) {
1616
let _ = arg.map_or_else(||{
1717
let mut y = 1;
1818
for _ in 0..10 {
19-
y = (y + 2/y) / 2;
19+
y = (y + 2 / y) / 2;
2020
}
2121
y
2222
}, |x| x * x * x * x);

tests/ui/option_if_let_else.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ help: try
4747
LL | let _ = arg.map_or_else(||{
4848
LL | let mut y = 1;
4949
LL | for _ in 0..10 {
50-
LL | y = (y + 2/y) / 2;
50+
LL | y = (y + 2 / y) / 2;
5151
LL | }
5252
LL | y
5353
...

0 commit comments

Comments
 (0)