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 Mar 19, 2024
1 parent 1e7092d commit 3a4a595
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# EditorConfig configuration for dyndnsd
# 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
5 changes: 5 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2024 Luflosi <[email protected]>
# SPDX-License-Identifier: CC0-1.0

edition = "2021"
hard_tabs = true
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fn main() {
println!("Hello, world!");
println!("Hello, world!");
}

0 comments on commit 3a4a595

Please sign in to comment.