From 1a9727a81e0ed68ca5d1a71f3ced7a5f0751aab7 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 5 Apr 2023 19:04:10 +0100 Subject: [PATCH] ci/rustfmt: make sure to only check each file once rustfmt has some magic that follows files (I'm guessing), making files get checked multiple times with `*.rs`, so let's limit ourselves to `lib.rs`. Part-of: --- .gitlab-ci/test/gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/test/gitlab-ci.yml b/.gitlab-ci/test/gitlab-ci.yml index 9aea05f4939..21cbdf47b8f 100644 --- a/.gitlab-ci/test/gitlab-ci.yml +++ b/.gitlab-ci/test/gitlab-ci.yml @@ -28,7 +28,7 @@ rustfmt: GIT_STRATEGY: fetch script: - shopt -s globstar - - rustfmt --check --verbose src/**/*.rs + - rustfmt --check --verbose src/**/lib.rs clang-format: # Cancel job if a newer commit is pushed to the same branch