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.
16 lines
228 B
Rust
16 lines
228 B
Rust
// rustfmt-version: Two
|
|
|
|
fn main() {
|
|
thread::spawn(|| {
|
|
while true {
|
|
println!("iteration");
|
|
}
|
|
});
|
|
|
|
thread::spawn(|| {
|
|
loop {
|
|
println!("iteration");
|
|
}
|
|
});
|
|
}
|