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