0142e961ad
When either one of these two options are set to `true`, each should take precedence over the brace_style option. This commit does not introduce any formatting change to the default configuration, so no version gate is required.
26 lines
233 B
Rust
26 lines
233 B
Rust
// rustfmt-brace_style: AlwaysNextLine
|
|
// Item brace style
|
|
|
|
enum Foo {}
|
|
|
|
struct Bar {}
|
|
|
|
struct Lorem
|
|
{
|
|
ipsum: bool,
|
|
}
|
|
|
|
struct Dolor<T>
|
|
where
|
|
T: Eq,
|
|
{
|
|
sit: T,
|
|
}
|
|
|
|
#[cfg(test)]
|
|
mod tests
|
|
{
|
|
#[test]
|
|
fn it_works() {}
|
|
}
|