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

12 lines
164 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
}