Skip to content

Commit

Permalink
Add toolchain and fmt files
Browse files Browse the repository at this point in the history
One can now sue `cargo fmt` to format the code
  • Loading branch information
InfoHunter committed Nov 7, 2023
1 parent 7c52a93 commit 2199cc4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[toolchain]
channel = "stable"
components = [ "rustfmt" ]
18 changes: 18 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
edition = "2021"

# We are going to enable these after switching to nightly tool chain
#comment_width = 100
#binop_separator = "Front"
#format_strings = true
#max_width = 100
#merge_derives = true
#imports_granularity = "Crate"
#newline_style = "Unix"
#merge_imports = true
#normalize_comments = true
#normalize_doc_attributes = true
#reorder_imports = true
#report_fixme = "Always"
#report_todo = "Always"
#trailing_comma = "Vertical"
#use_field_init_shorthand = true

0 comments on commit 2199cc4

Please sign in to comment.