Add editorconfig and missing unstable_features option
This commit is contained in:
parent
188f684ebc
commit
6ad831a12d
12
.editorconfig
Normal file
12
.editorconfig
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# EditorConfig is awesome: https://EditorConfig.org
|
||||||
|
|
||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
@ -1,13 +1,15 @@
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# Just enforce it here as well instead of relying on editorconfig alone
|
# Already set in editorconfig, just repeated here to be sure
|
||||||
hard_tabs = false
|
hard_tabs = false
|
||||||
tab_spaces = 4
|
tab_spaces = 4
|
||||||
newline_style = "Unix"
|
newline_style = "Unix"
|
||||||
|
|
||||||
|
# Unstable features
|
||||||
|
unstable_features = true
|
||||||
|
version = "Two"
|
||||||
imports_granularity = "Module"
|
imports_granularity = "Module"
|
||||||
group_imports = "StdExternalCrate"
|
group_imports = "StdExternalCrate"
|
||||||
|
|
||||||
force_multiline_blocks = false
|
force_multiline_blocks = false
|
||||||
fn_single_line = false
|
fn_single_line = false
|
||||||
comment_width = 100
|
comment_width = 100
|
||||||
|
Loading…
Reference in New Issue
Block a user