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