Skip to content

Instantly share code, notes, and snippets.

@TrinityCoder
Created May 30, 2019 09:24
Show Gist options
  • Save TrinityCoder/b4546df2bcdb5d7a841671cf8a69db40 to your computer and use it in GitHub Desktop.
Save TrinityCoder/b4546df2bcdb5d7a841671cf8a69db40 to your computer and use it in GitHub Desktop.
My default rustfmt config
edition = "2018"
enum_discrim_align_threshold = 20
fn_single_line = true
imports_indent = "Visual"
inline_attribute_width = 70
max_width = 70
reorder_impl_items = true
struct_field_align_threshold = 8
tab_spaces = 2
unstable_features = true
use_field_init_shorthand = true
version = "Two"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment