forked from taiki-e/pin-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rustfmt.toml
19 lines (15 loc) · 872 Bytes
/
.rustfmt.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Rustfmt configuration
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md
# This is required for bug-fixes, which technically can't be made to the stable
# first version.
version = "Two" # Tracking issue: https://github.com/rust-lang/rustfmt/issues/3383
# Refs: https://internals.rust-lang.org/t/running-rustfmt-on-rust-lang-rust-and-other-rust-lang-repositories/8732/72
use_small_heuristics = "Max"
# Apply rustfmt to more places.
merge_imports = true # Tracking issue: https://github.com/rust-lang/rustfmt/issues/3362
format_code_in_doc_comments = true # Tracking issue: https://github.com/rust-lang/rustfmt/issues/3348
# Set the default settings again to always apply the proper formatting without
# being affected by the editor settings.
# Refs: https://github.com/rust-lang/rls/issues/501#issuecomment-333717736
edition = "2018"
tab_spaces = 4