Add rustfmt config file and install pre-commit
This commit is contained in:
parent
a112c7f7a0
commit
969db33c95
|
@ -0,0 +1,6 @@
|
|||
repos:
|
||||
- repo: https://github.com/doublify/pre-commit-rust
|
||||
rev: master
|
||||
hooks:
|
||||
- id: fmt
|
||||
- id: cargo-check
|
|
@ -0,0 +1,4 @@
|
|||
comment_width = 100
|
||||
format_code_in_doc_comments = true
|
||||
imports_granularity = "Module"
|
||||
wrap_comments = true
|
Loading…
Reference in New Issue