cro3
cro3 copied to clipboard
Create a rustfmt.toml and reformat
This is based on my own rustfmt.toml I usually use. I tend to set these for the following reasons:
imports_granularity = "Crate" # this combines a bunch of lines at the top, but it doesnt match google style so I removed it tab_spaces = 2 # param lists and chained calls tend to be longer and more common in rust, I think this increases readability fn_params_layout = "Tall" # this is way easier to read than non tall format_strings = true use_try_shorthand = true # replace any ugly try! macros with the pretty ? wrap_comments = true max_width = 100 # If we can do it in Java, we can do it in Rust
PR #76