diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61a6c262720..71a63be7de1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,7 +64,17 @@ jobs: # Ensure there are no clippy warnings clippy: - runs-on: ubuntu-latest + strategy: + matrix: + include: + - name: Linux x86_64 + os: ubuntu-latest + - name: macOS aarch64 + os: macos-14 + - name: Windows x86_64 MSVC + os: windows-latest + name: Clippy ${{ matrix.name }} + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v5 - run: rustup update stable && rustup default stable diff --git a/tests/testsuite/script/cargo.rs b/tests/testsuite/script/cargo.rs index 1fa8960b27d..6d8a2e96b89 100644 --- a/tests/testsuite/script/cargo.rs +++ b/tests/testsuite/script/cargo.rs @@ -1,5 +1,4 @@ use std::fs; -use std::io::Write; use crate::prelude::*; use cargo_test_support::basic_manifest; @@ -2179,6 +2178,7 @@ args: [] #[cargo_test(nightly, reason = "-Zscript is unstable")] #[cfg(target_os = "linux")] fn memfd_script() { + use std::io::Write; use std::os::fd::AsRawFd; let fd = memfd::MemfdOptions::new()