CI: Replace manual rustfmt invocation with cargo fmt

Maxime “pep” Buquet created

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>

Change summary

.gitlab-ci.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

.gitlab-ci.yml 🔗

@@ -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