We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f08e9c2 commit 0c97315Copy full SHA for 0c97315
.travis.yml
@@ -17,13 +17,21 @@ matrix:
17
script: ci/run.sh
18
- install: true
19
script: ci/dox.sh
20
+ - env: RUSTFMT=On NO_ADD=1
21
+ allow_failures:
22
23
24
install:
- - if [ "$NO_ADD" = "" ]; then rustup target add $TARGET; fi
25
+ - if [ "$NO_ADD" == "" ]; then rustup target add $TARGET; fi
26
27
script:
28
- cargo generate-lockfile
29
- ci/run-docker.sh $TARGET
30
+ - |
31
+ if [[ ${RUSTFMT} == "On" ]]; then
32
+ cargo install rustfmt-nightly
33
+ cargo fmt -- --write-mode=diff
34
+ fi
35
36
notifications:
37
email:
rustfmt.toml
@@ -0,0 +1 @@
1
+max_width = 79
0 commit comments