-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrustfmt.toml
26 lines (25 loc) · 1.19 KB
/
rustfmt.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
################################################################################
# Rust Style Configuration #
# #
# This file controls the operation of `rustfmt` and `cargo fmt`. As the #
# `rustfmt` tool is still unstable, this file only contains the configurations #
# that are stable as of the pinned Rust version in `rust-toolchain`. The file #
# `rustfmt-nightly.toml` contains the configurations that are available as of #
# the nightly Rust release when that file was last touched. #
# #
# See <https://rust-lang.github.io/rustfmt/?version=v1.4.20> #
################################################################################
edition = "2018"
fn_args_layout = "Tall"
force_explicit_abi = true
hard_tabs = true
max_width = 81
merge_derives = true
newline_style = "Unix"
remove_nested_parens = true
reorder_imports = true
reorder_modules = true
tab_spaces = 4
use_field_init_shorthand = true
use_small_heuristics = "Default"
use_try_shorthand = true