diff options
author | sharkdp <davidpeter@web.de> | 2018-05-06 14:53:52 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2018-05-06 15:10:46 +0200 |
commit | 3fa70deaa7777af32b9480961b91bf70c2d04f20 (patch) | |
tree | e8d265ba7923e6dbfb0eabf22590650d2f97a190 /.travis.yml | |
parent | d4553c6b386c2c71a9a177c3cdcb530eaf7ec59b (diff) |
Run 'cargo fmt' and enforce via Travis
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index e639a0b8..b3fb6cc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,14 @@ matrix: rust: 1.24.0 env: TARGET=x86_64-apple-darwin + # Code formatting check + - os: linux + rust: nightly + # skip the global install step + install: + - cargo install --debug --force rustfmt-nightly + script: cargo fmt -- --write-mode=diff + addons: apt: packages: |