6bf1382927
* Indent open brace for impl when nested. Fixes #1226 * Added test case for indented impl with brace on newline
12 lines
167 B
Rust
12 lines
167 B
Rust
// rustfmt-item_brace_style: AlwaysNextLine
|
|
mod x {
|
|
struct X(i8);
|
|
|
|
impl Y for X
|
|
{
|
|
fn y(self) -> () {
|
|
println!("ok");
|
|
}
|
|
}
|
|
}
|