sapling/rustfmt.toml
Lucian Wischik 3440129ca6 provide edition in .rustfmt.toml
Summary:
When you invoke `rustfmt` tool, it defaults to 2018 edition of formatting.

When RLS is asked to format, it first determines the edition. It will fail to do any formatting if it can't find the edition.

Putting the edition inside fbcode/.rustfmt.toml means that RLS will be willing to go ahead and format any file in fbcode. (unless that file has a more local .rustfmt.toml which omits edition).

Reviewed By: jsgf

Differential Revision: D15425617

fbshipit-source-id: 2cb20778af2383d291d22ba272fc16264741155c
2019-05-29 19:55:37 -07:00

11 lines
304 B
TOML

# Get help on options with `rustfmt --help=config`
# Please keep these in alphabetical order.
# Prefer to keep builtin and custom derives separate
edition = "2018"
merge_derives = false
reorder_imports = true
reorder_modules = true
tab_spaces = 4
use_field_init_shorthand = true
use_try_shorthand = true