diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 28af7d9..a2c1e24 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,10 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: - toolchain: 1.71.1 + toolchain: 1.73.0 + components: rustfmt - name: Run rustfmt uses: actions-rs/cargo@v1 with: @@ -23,7 +24,7 @@ jobs: name: Security audit runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -43,12 +44,13 @@ jobs: os: windows-2019 steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - uses: dtolnay/rust-toolchain@stable with: - toolchain: 1.71.1 + toolchain: 1.73.0 + components: rustfmt - name: Run tests if: runner.os == 'Linux' || runner.os == 'Windows' uses: actions-rs/cargo@v1 diff --git a/src/lib.rs b/src/lib.rs index d4acf1e..aa54d2e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,9 +43,9 @@ pub(crate) enum Vectorization { #[inline(always)] pub(crate) fn vectorization_support() -> Vectorization { #[cfg(all( - any(target_arch = "x86", target_arch = "x86_64"), - target_feature = "sse" -))] + any(target_arch = "x86", target_arch = "x86_64"), + target_feature = "sse" + ))] { use core::sync::atomic::{AtomicU8, Ordering}; static FLAGS: AtomicU8 = AtomicU8::new(u8::MAX);