Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
feat: add rustfmt (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX authored Jul 12, 2022
1 parent 86dd23a commit 422bed5
Show file tree
Hide file tree
Showing 4 changed files with 314 additions and 323 deletions.
15 changes: 15 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
edition = "2021"
match_block_trailing_comma = true
newline_style = "Unix"
use_field_init_shorthand = true
use_try_shorthand = true

hard_tabs = false
format_code_in_doc_comments = true
group_imports = "StdExternalCrate"
imports_granularity = "Module"
imports_layout = "HorizontalVertical"
match_arm_blocks = true
normalize_comments = true
overflow_delimited_expr = true
struct_lit_single_line = false
4 changes: 2 additions & 2 deletions src/logger.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub fn init() {
// TODO: log to file
tracing_subscriber::fmt::init();
// TODO: log to file
tracing_subscriber::fmt::init();
}
Loading

0 comments on commit 422bed5

Please sign in to comment.