c2ae39e77a
This is useful when working with very small max_widths like 79 chars.
16 lines
329 B
Rust
16 lines
329 B
Rust
// rustfmt-use_small_heuristics: Max
|
|
|
|
enum Lorem {
|
|
Ipsum,
|
|
Dolor(bool),
|
|
Sit { amet: Consectetur, adipiscing: Elit },
|
|
}
|
|
|
|
fn main() {
|
|
lorem("lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing");
|
|
|
|
let lorem = Lorem { ipsum: dolor, sit: amet };
|
|
|
|
let lorem = if ipsum { dolor } else { sit };
|
|
}
|