mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-07-27 20:47:46 +00:00
chore(rustfmt): keep config stable-compatible
This commit is contained in:
+3
-31
@@ -1,5 +1,8 @@
|
|||||||
# Rustfmt configuration for polyfill-rs
|
# Rustfmt configuration for polyfill-rs
|
||||||
# Optimized for readability and consistency
|
# Optimized for readability and consistency
|
||||||
|
#
|
||||||
|
# Note: This file is kept compatible with stable `rustfmt` so that local dev and
|
||||||
|
# CI (`cargo fmt --all -- --check`) behave consistently.
|
||||||
|
|
||||||
# Basic formatting
|
# Basic formatting
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
@@ -7,52 +10,21 @@ max_width = 100
|
|||||||
tab_spaces = 4
|
tab_spaces = 4
|
||||||
newline_style = "Unix"
|
newline_style = "Unix"
|
||||||
|
|
||||||
# Indentation
|
|
||||||
indent_style = "Block"
|
|
||||||
merge_derives = true
|
merge_derives = true
|
||||||
use_small_heuristics = "Default"
|
use_small_heuristics = "Default"
|
||||||
|
|
||||||
# Spacing
|
|
||||||
spaces_around_ranges = false
|
|
||||||
binop_separator = "Front"
|
|
||||||
remove_nested_parens = true
|
remove_nested_parens = true
|
||||||
format_code_in_doc_comments = true
|
|
||||||
|
|
||||||
# Imports
|
|
||||||
imports_granularity = "Module"
|
|
||||||
group_imports = "StdExternalCrate"
|
|
||||||
reorder_imports = true
|
reorder_imports = true
|
||||||
|
|
||||||
# Comments
|
|
||||||
wrap_comments = true
|
|
||||||
comment_width = 80
|
|
||||||
|
|
||||||
# Match
|
|
||||||
match_arm_leading_commas = true
|
|
||||||
match_block_trailing_comma = true
|
match_block_trailing_comma = true
|
||||||
|
|
||||||
# Control flow
|
|
||||||
control_brace_style = "AlwaysSameLine"
|
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
fn_call_width = 60
|
fn_call_width = 60
|
||||||
fn_params_layout = "Tall"
|
fn_params_layout = "Tall"
|
||||||
|
|
||||||
# Structs and enums
|
|
||||||
struct_field_align_threshold = 0
|
|
||||||
enum_discrim_align_threshold = 0
|
|
||||||
|
|
||||||
# Arrays and tuples
|
# Arrays and tuples
|
||||||
array_width = 60
|
array_width = 60
|
||||||
tuple_width = 60
|
|
||||||
|
|
||||||
# Chains
|
# Chains
|
||||||
chain_width = 60
|
chain_width = 60
|
||||||
chain_split_single_child = true
|
|
||||||
|
|
||||||
# Other
|
|
||||||
format_macro_matchers = true
|
|
||||||
format_macro_bodies = true
|
|
||||||
format_strings = true
|
|
||||||
overflow_delimited_expr = true
|
|
||||||
normalize_doc_attributes = true
|
|
||||||
Reference in New Issue
Block a user