Add style RFC conformant rustfmt toml
Add a new `where` clause option, as yet unused.
This commit is contained in:
parent
4ed5a3bac7
commit
b820d50ec0
2 changed files with 8 additions and 0 deletions
2
rfc-rustfmt.toml
Normal file
2
rfc-rustfmt.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
fn_args_layout = "Block"
|
||||
where_style = "Rfc"
|
|
@ -25,6 +25,11 @@ macro_rules! configuration_option_enum{
|
|||
}
|
||||
}
|
||||
|
||||
configuration_option_enum! { Style:
|
||||
Rfc, // Follow the style RFCs style.
|
||||
Default, // Follow the traditional Rustfmt style.
|
||||
}
|
||||
|
||||
configuration_option_enum! { NewlineStyle:
|
||||
Windows, // \r\n
|
||||
Unix, // \n
|
||||
|
@ -361,6 +366,7 @@ create_config! {
|
|||
fn_arg_indent: BlockIndentStyle, BlockIndentStyle::Visual, "Indent on function arguments";
|
||||
type_punctuation_density: TypeDensity, TypeDensity::Wide,
|
||||
"Determines if '+' or '=' are wrapped in spaces in the punctuation of types";
|
||||
where_style: Style, Style::Default, "Overall strategy for where clauses";
|
||||
// Should we at least try to put the where clause on the same line as the rest of the
|
||||
// function decl?
|
||||
where_density: Density, Density::CompressedIfEmpty, "Density of a where clause";
|
||||
|
|
Loading…
Reference in a new issue