Skip to content

Commit c53b1cd

Browse files
committed
[ci] check formatting
1 parent 556b2e7 commit c53b1cd

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

.appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ install:
1515
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
1616
- rustc -vV
1717
- cargo -vV
18+
- cargo install rustfmt-nightly
1819

1920
build: false
2021

2122
test_script:
2223
- cargo test --target %TARGET%
2324
- cargo test --target %TARGET% --release
25+
- cargo fmt -- --write-mode=diff
2426

2527
branches:
2628
only:

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ install:
2020

2121
script:
2222
- cargo generate-lockfile
23+
- cargo install rustfmt-nightly
2324
- ci/run-docker.sh $TARGET
2425

2526
notifications:

ci/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ set -ex
44

55
cargo test --target $TARGET
66
cargo test --release --target $TARGET
7+
cargo fmt -- --write-mode=diff

rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
max_width = 79

0 commit comments

Comments
 (0)