rust/tests/target/configs/fn_single_line/true.rs

10 lines
160 B
Rust
Raw Normal View History

// rustfmt-fn_single_line: true
// Single-expression function on single line
fn lorem() -> usize { 42 }
fn lorem() -> usize {
let ipsum = 42;
ipsum
}