Files
tetra-bluestation/rustfmt.toml
Wouter Bokslag 71caafae96 Standardized code formatting conventions and linting
Added a rustfmt.toml to define code formatting conventions for the project.
Applied said format to entire codebase.
2026-02-19 17:19:44 +01:00

25 lines
517 B
TOML

# rustfmt configuration
# https://rust-lang.github.io/rustfmt/
edition = "2024"
# Line width before wrapping
max_width = 140
# Indentation width
tab_spaces = 4
hard_tabs = false
# Reorder mod declarations and use statements
reorder_modules = true
reorder_imports = true
# Wrap function parameters when they don't fit on one line
fn_params_layout = "Tall"
# Use field init shorthand { x } instead of { x: x }
use_field_init_shorthand = true
# Use try-operator ? instead of try!()
use_try_shorthand = true