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.
2 parents 5280226 + 35d312f commit 7fc71a3Copy full SHA for 7fc71a3
.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