Add rustfmt

This commit is contained in:
2023-03-02 11:50:19 +09:00
parent 981e78b6bb
commit c72f54243b
4 changed files with 16 additions and 2 deletions

10
.editorconfig Normal file
View File

@@ -0,0 +1,10 @@
root = true
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = tab
indent_size = tab
smart_tab = true

1
rustfmt.toml Normal file
View File

@@ -0,0 +1 @@
hard_tabs = true

View File

@@ -1,5 +1,8 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = [ pkgs.cargo ];
packages = [
pkgs.cargo
pkgs.rustfmt
];
}

View File

@@ -1,3 +1,3 @@
fn main() {
println!("Hello, world!");
println!("Hello, world!");
}