mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-24 04:46:58 +00:00

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: One
|
|
|
|
fn main() {
|
|
thread::spawn(|| {
|
|
while true {
|
|
println!("iteration");
|
|
}
|
|
});
|
|
|
|
thread::spawn(|| loop {
|
|
println!("iteration");
|
|
});
|
|
}
|