Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit f4f1444

Browse files
committed
Work around Rustfmt bug
1 parent 590c4dc commit f4f1444

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,6 +1803,8 @@ fn client_reformat_with_range() {
18031803
let formatted = r#"pub fn main() {
18041804
let world1 = "world";
18051805
println!("Hello, {}!", world1);
1806+
1807+
// Work around rustfmt#3494
18061808
let world2 = "world"; println!("Hello, {}!", world2);
18071809
let world3 = "world"; println!("Hello, {}!", world3);
18081810
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
pub fn main()
22
{
33
let world1 = "world"; println!("Hello, {}!", world1);
4+
5+
// Work around rustfmt#3494
46
let world2 = "world"; println!("Hello, {}!", world2);
57
let world3 = "world"; println!("Hello, {}!", world3);
68
}

0 commit comments

Comments
 (0)