7d9a2ef96d
The loop and while formatting was diverting as `loop` was not being moved to a new, indented block, as `while` was. This commit fixes this inconsistency but pins it to version 2 to avoid changing existing code.
14 lines
204 B
Rust
14 lines
204 B
Rust
// rustfmt-version: Two
|
|
|
|
fn main() {
|
|
thread::spawn(|| {
|
|
while true {
|
|
println!("iteration");
|
|
}
|
|
});
|
|
|
|
thread::spawn(|| loop {
|
|
println!("iteration");
|
|
});
|
|
}
|