diff --git a/.cirrus.yml b/.cirrus.yml index a0c8143..f315334 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -14,7 +14,7 @@ env: freebsd_task: name: test ($TARGET) freebsd_instance: - image_family: freebsd-12-4 + image_family: freebsd-13-2 matrix: - env: TARGET: x86_64-unknown-freebsd diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b6d03b..9cddbf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,15 +111,11 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - # When updating this, the reminder to update the minimum supported - # Rust version in Cargo.toml. - rust: ['1.63'] steps: - uses: actions/checkout@v4 - - name: Install Rust - # --no-self-update is necessary because the windows environment cannot self-update rustup.exe. - run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} - - run: cargo build + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack + - run: cargo hack build --no-dev-deps --rust-version clippy: runs-on: ubuntu-latest diff --git a/src/driver.rs b/src/driver.rs index bba010e..834fc0d 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -140,7 +140,7 @@ pub fn block_on(future: impl Future) -> T { static CACHE: RefCell<(Parker, Waker, Arc)> = RefCell::new(parker_and_waker()); // Indicates that the current thread is polling I/O, but not necessarily blocked on it. - static IO_POLLING: Cell = Cell::new(false); + static IO_POLLING: Cell = const { Cell::new(false) }; } struct BlockOnWaker {