We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5280226 commit 35d312fCopy full SHA for 35d312f
.travis.yml
@@ -3,6 +3,13 @@ rust:
3
- stable
4
- nightly
5
script:
6
+ - |
7
+ if [[ $TRAVIS_RUST_VERSION == *stable* ]]
8
+ then
9
+ rustup component add rustfmt
10
+ cargo fmt --version
11
+ cargo fmt -- --check || (echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt --version))"; false)
12
+ fi
13
- cargo test
14
- |
15
[ $TRAVIS_RUST_VERSION != nightly ] ||
0 commit comments