Skip to content

Commit

Permalink
Use tabs for indentation of rust code
Browse files Browse the repository at this point in the history
This is my preference.
  • Loading branch information
Luflosi committed Jun 4, 2024
1 parent 8e5d29d commit cf3c1c1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# EditorConfig configuration for zonewatch
# https://EditorConfig.org

# Top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file, utf-8 charset
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.rs]
indent_style = tab

[*.nix]
indent_size = 2
indent_style = space

[*.lock]
insert_final_newline = unset
indent_size = unset
2 changes: 2 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
edition = "2021"
hard_tabs = true
3 changes: 3 additions & 0 deletions main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit cf3c1c1

Please sign in to comment.