diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b30b89..f68f312 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,10 @@ env: RUSTFLAGS: -Dwarnings RUST_BACKTRACE: 1 +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest diff --git a/build.rs b/build.rs index b60351a..12a5212 100644 --- a/build.rs +++ b/build.rs @@ -1,4 +1,7 @@ fn main() { + println!("cargo:rerun-if-changed=build.rs"); + println!("cargo:rustc-check-cfg=cfg(slab_no_const_vec_new,slab_no_track_caller)"); + let cfg = match autocfg::AutoCfg::new() { Ok(cfg) => cfg, Err(e) => { diff --git a/src/lib.rs b/src/lib.rs index 8abec35..8317c5f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,6 +9,7 @@ no_crate_inject, attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables)) ))] +#![allow(clippy::incompatible_msrv)] // false positive: https://github.com/rust-lang/rust-clippy/issues/12280 //! Pre-allocated storage for a uniform data type. //!