diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-03-21 17:46:23 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-03-22 20:19:20 +0100 |
| commit | 7ccd8ce6938cc6f44b3451d7a865b6e0d406d2d4 (patch) | |
| tree | 110451835256d4f6c7218479a6be1b3fc58e9555 | |
| parent | 52f6d5d5893b74755e044072ebfbaded230c3526 (diff) | |
| download | rust-7ccd8ce6938cc6f44b3451d7a865b6e0d406d2d4.tar.gz rust-7ccd8ce6938cc6f44b3451d7a865b6e0d406d2d4.zip | |
Add fmt check on `build_system`
| -rw-r--r-- | .github/workflows/ci.yml | 5 | ||||
| -rw-r--r-- | build_system/src/test.rs | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44730bab4ed..75694ebd9ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,10 @@ jobs: ./y.sh test --release --clean --build-sysroot ${{ matrix.commands }} - name: Check formatting - run: cargo fmt -- --check + run: | + cargo fmt -- --check + cd build_system + cargo fmt -- --check - name: clippy run: | diff --git a/build_system/src/test.rs b/build_system/src/test.rs index 86e6f1a95e9..8ce615ff17a 100644 --- a/build_system/src/test.rs +++ b/build_system/src/test.rs @@ -127,7 +127,9 @@ impl TestArg { show_usage(); return Ok(None); } - x if runners.contains_key(x) && !test_arg.runners.iter().any(|runner| runner == x) => { + x if runners.contains_key(x) + && !test_arg.runners.iter().any(|runner| runner == x) => + { test_arg.runners.push(x.into()); } arg => { |
