mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Crate] Add formatting (#22)
* chore: add standard for formatting * chore: manually tidy up imports and format * chore: remove vscode and add to gitignore * chore: alphabetically order and fix * chore: format * chore: fix format issue with payload * chore: format as merge had unformatted code * [format] Fix comments, change max width and binop operator --------- Co-authored-by: CosminPerRam <cosmin.p@live.com>
This commit is contained in:
parent
e023e13236
commit
1b13d39856
71 changed files with 3165 additions and 2593 deletions
72
.rustfmt.toml
Normal file
72
.rustfmt.toml
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
attr_fn_like_width = 70
|
||||
array_width = 60
|
||||
binop_separator = "Front"
|
||||
blank_lines_lower_bound = 0
|
||||
blank_lines_upper_bound = 1
|
||||
brace_style = "PreferSameLine"
|
||||
chain_width = 60
|
||||
color = "Auto"
|
||||
combine_control_expr = false
|
||||
comment_width = 80
|
||||
condense_wildcard_suffixes = true
|
||||
control_brace_style = "AlwaysSameLine"
|
||||
disable_all_formatting = false
|
||||
doc_comment_code_block_width = 100
|
||||
edition = "2021"
|
||||
emit_mode = "Files"
|
||||
empty_item_single_line = true
|
||||
error_on_line_overflow = false
|
||||
error_on_unformatted = false
|
||||
fn_call_width = 60
|
||||
fn_params_layout = "Tall"
|
||||
fn_single_line = true
|
||||
force_explicit_abi = true
|
||||
force_multiline_blocks = true
|
||||
format_generated_files = true
|
||||
format_macro_bodies = true
|
||||
format_strings = true
|
||||
group_imports = "Preserve"
|
||||
hard_tabs = false
|
||||
hide_parse_errors = false
|
||||
hex_literal_case = "Preserve"
|
||||
ignore = []
|
||||
indent_style = "Block"
|
||||
imports_granularity = "Preserve"
|
||||
imports_indent = "Block"
|
||||
imports_layout = "HorizontalVertical"
|
||||
inline_attribute_width = 0
|
||||
make_backup = false
|
||||
match_arm_blocks = true
|
||||
match_arm_leading_pipes = "Never"
|
||||
match_block_trailing_comma = false
|
||||
max_width = 120
|
||||
merge_derives = true
|
||||
newline_style = "Auto"
|
||||
normalize_comments = true
|
||||
normalize_doc_attributes = false
|
||||
overflow_delimited_expr = false
|
||||
reorder_impl_items = false
|
||||
reorder_imports = true
|
||||
reorder_modules = true
|
||||
required_version = "1.5.2"
|
||||
short_array_element_width_threshold = 10
|
||||
single_line_if_else_max_width = 50
|
||||
skip_children = false
|
||||
space_after_colon = true
|
||||
space_before_colon = false
|
||||
spaces_around_ranges = true
|
||||
struct_field_align_threshold = 0
|
||||
struct_lit_single_line = true
|
||||
struct_lit_width = 18
|
||||
struct_variant_width = 35
|
||||
tab_spaces = 4
|
||||
trailing_comma = "Vertical"
|
||||
trailing_semicolon = true
|
||||
type_punctuation_density = "Wide"
|
||||
unstable_features = false
|
||||
use_field_init_shorthand = false
|
||||
use_small_heuristics = "Default"
|
||||
use_try_shorthand = true
|
||||
version = "Two"
|
||||
where_single_line = true
|
||||
wrap_comments = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue