wormhole/sdk/rust/rustfmt.toml

21 lines
669 B
TOML

# Unstable options are commented out below. We should re-enable them once they are stabilized.
# Merge similar crates together to avoid multiple use statements.
# imports_granularity = "Module"
# Consistency in formatting makes tool based searching/editing better.
# empty_item_single_line = false
# Easier editing when arbitrary mixed use statements do not collapse.
# imports_layout = "Vertical"
# Default rustfmt formatting of match arms with branches is awful.
match_arm_leading_pipes = "Preserve"
# Align Fields
# enum_discrim_align_threshold = 80
# struct_field_align_threshold = 80
# Allow up to two blank lines for grouping.
# blank_lines_upper_bound = 2