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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22321>
This commit is contained in:
Eric Engestrom 2023-04-05 19:04:10 +01:00 committed by Marge Bot
parent 36fd2bbd98
commit 1a9727a81e
1 changed files with 1 additions and 1 deletions

View File

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