Move rustfmt installation to 'install' section
@@ -10,8 +10,7 @@ before_install:
- sudo apt-get -qq update
install:
- sudo apt-get -qq --yes install gcc g++ make libsodium-dev libleveldb-dev libssl-dev
-before_script:
-- which rustfmt || cargo install rustfmt
+- cargo install rustfmt --force
script:
- cargo fmt -p cryptocurrency -- --write-mode=diff
- cargo fmt -p cryptocurrency_api_tests -- --write-mode=diff
