CI: Replace manual rustfmt invocation with cargo fmt

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-09-16 20:01:21 +02:00
parent 36e66a7ac4
commit 267ff2e817
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -34,7 +34,7 @@ rustfmt:
stage: lint
script:
- rustup component add rustfmt
- find -type f -iname '*.rs' -not -path './target/*' | xargs rustfmt --check --edition 2018
- cargo fmt --check
extends:
- .stable