Install rustfmt
This commit is contained in:
parent
a707645d88
commit
6b94a298c0
2 changed files with 16 additions and 0 deletions
10
.rustfmt.toml
Normal file
10
.rustfmt.toml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
chain_one_line_max = 100
|
||||||
|
single_line_if_else_max_width = 100
|
||||||
|
array_width = 100
|
||||||
|
fn_call_width = 100
|
||||||
|
reorder_import_names = true
|
||||||
|
reorder_imports_in_group = true
|
||||||
|
trailing_comma = "Never"
|
||||||
|
trailing_semicolon = true
|
||||||
|
fn_args_density = "CompressedIfEmpty"
|
||||||
|
imports_indent = "Visual"
|
|
@ -2,7 +2,13 @@ language: rust
|
||||||
rust:
|
rust:
|
||||||
- stable
|
- stable
|
||||||
cache: cargo
|
cache: cargo
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- export PATH="$PATH:$HOME/.cargo/bin"
|
||||||
|
- which rustfmt || cargo install rustfmt
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- cargo fmt -- --write-mode=diff
|
||||||
- cargo build
|
- cargo build
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
Reference in a new issue