mirror of
https://github.com/MidnightBlueLabs/tetra-bluestation.git
synced 2026-03-29 05:09:51 +00:00
Added a rustfmt.toml to define code formatting conventions for the project. Applied said format to entire codebase.
25 lines
517 B
TOML
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
|