Add formating rules
This commit is contained in:
parent
81e10b9c75
commit
2f06385c5c
|
@ -1,2 +1,4 @@
|
|||
/target
|
||||
.DS_STORE
|
||||
*.profraw
|
||||
commitments.json
|
||||
.*
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
# See: https://github.com/rust-lang/rustfmt/blob/master/Configurations.md
|
||||
edition = "2021"
|
||||
# group_imports = "One"
|
||||
imports_granularity = "Crate"
|
||||
use_field_init_shorthand = true
|
||||
wrap_comments = true
|
||||
comment_width = 80
|
||||
struct_field_align_threshold = 20
|
||||
enum_discrim_align_threshold = 20
|
||||
condense_wildcard_suffixes = true
|
||||
format_strings = true
|
||||
format_macro_matchers = true
|
||||
format_macro_bodies = true
|
||||
normalize_comments = true
|
||||
reorder_impl_items = true
|
||||
format_code_in_doc_comments = true
|
||||
overflow_delimited_expr = true
|
||||
normalize_doc_attributes = true
|
||||
hex_literal_case = "Lower"
|
Loading…
Reference in New Issue