-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding .editorconfig and rustfmt.toml
- Loading branch information
1 parent
49184ea
commit 8c78f3e
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
max_line_length = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Rustfmt configuration file | ||
|
||
# Set the maximum line width | ||
max_width = 100 | ||
|
||
# Use 4 spaces for indentation | ||
tab_spaces = 4 | ||
|
||
# Use the default set of rules | ||
# Uncomment the following line to enable custom rules | ||
# custom_rules = true | ||
|
||
## Nightly only, but preferrable | ||
# brace_style = "PreferSameLine" | ||
# enum_discrim_align_threshold = 30 |