Add editorconfig and missing unstable_features option

This commit is contained in:
Patrick Auernig 2023-07-31 18:17:37 +02:00
parent 188f684ebc
commit 6ad831a12d
2 changed files with 16 additions and 2 deletions

12
.editorconfig Normal file
View 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

View File

@ -1,13 +1,15 @@
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
tab_spaces = 4
newline_style = "Unix"
# Unstable features
unstable_features = true
version = "Two"
imports_granularity = "Module"
group_imports = "StdExternalCrate"
force_multiline_blocks = false
fn_single_line = false
comment_width = 100