Skip to content

Format code and add fmt config#67

Merged
timschmidt merged 1 commit intotimschmidt:mainfrom
TimTheBig:format
May 31, 2025
Merged

Format code and add fmt config#67
timschmidt merged 1 commit intotimschmidt:mainfrom
TimTheBig:format

Conversation

@TimTheBig
Copy link
Contributor

@TimTheBig TimTheBig commented May 29, 2025

This patch adds a rustfmt config then formats the code. It also enables git LF normalization.

I configured rustfmt as such:

max_width = 95
fn_call_width = 62
chain_width = 62

use_field_init_shorthand = true
match_block_trailing_comma = true

# unstable
reorder_impl_items = true
where_single_line = true
normalize_comments = true

let me know if you have any question about why I picked a value.

@timschmidt timschmidt merged commit c4c0270 into timschmidt:main May 31, 2025
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants