Install rustfmt

This commit is contained in:
Jake Howard 2017-07-18 14:26:31 +01:00
parent a707645d88
commit 6b94a298c0
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 16 additions and 0 deletions

10
.rustfmt.toml Normal file
View 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"

View file

@ -2,7 +2,13 @@ language: rust
rust:
- stable
cache: cargo
before_script:
- export PATH="$PATH:$HOME/.cargo/bin"
- which rustfmt || cargo install rustfmt
script:
- cargo fmt -- --write-mode=diff
- cargo build
- cargo build --release
- cargo test