Use stable rustfmt

And install it as the container doesn't have it. Fortunately it's rather
quick (few seconds).

The previous nightly container apparently dropped rustfmt, which is
understandable as not all tools are available all the time. That's on
us.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-03-26 18:09:59 +01:00
parent 476813a10a
commit f41b6bfd32
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -26,9 +26,11 @@ variables:
rustfmt:
stage: lint
image: rustlang/rust:nightly
script:
- rustup component add rustfmt
- find -type f -iname '*.rs' -not -path './target/*' | xargs rustfmt --check --edition 2018
extends:
- .stable
rust-latest-build:
extends: