diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6201fc7a..ab429d0f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,11 @@ jobs: name: run runs-on: ubuntu-22.04 + strategy: + matrix: + featureflags: + - --features clock-timer,h,lazy-wrap,string-pool,tokio + steps: - name: checkout code uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -20,10 +25,10 @@ jobs: run: rustc --version - name: build - run: cargo build --all-features --verbose + run: cargo build --release --verbose ${{ matrix.featureflags }} - name: test - run: cargo test --all-features --release --verbose + run: cargo test --release --verbose ${{ matrix.featureflags }} env: LLVM_PROFILE_FILE: "target/coverage/test-file.profraw" CARGO_INCREMENTAL: "0" diff --git a/src/clock_timer.rs b/src/clock_timer.rs index 0bc0dab78..2fc1b9663 100644 --- a/src/clock_timer.rs +++ b/src/clock_timer.rs @@ -4,7 +4,7 @@ super::runtime_selection_compile_check!("clock-timer"); pub use tokio::*; #[cfg(feature = "tokio")] mod tokio { - use ::chrono::{ DateTime, Local, NaiveDateTime, ParseError, Timelike as _, Utc }; + use ::chrono::{ DateTime, Local, NaiveDateTime, ParseError }; pub use ::chrono::TimeDelta; use ::thiserror::Error; diff --git a/src/lib.rs b/src/lib.rs index c89e9be27..ff3698f81 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,4 +59,5 @@ macro_rules! runtime_selection_compile_check { compile_error!(concat!("an async runtime is required to make use of `", $featname, "`; available runtimes (enable by selecting the crate feature): `tokio`")); } } +#[allow(unused)] use runtime_selection_compile_check; diff --git a/src/string_pool/pool/global.rs b/src/string_pool/pool/global.rs index 5d4806610..5b846124d 100644 --- a/src/string_pool/pool/global.rs +++ b/src/string_pool/pool/global.rs @@ -80,7 +80,7 @@ impl<'h> Equivalent<::Raw> for SlicesWrap<'h> { // - if a == b, good but not done yet, continue (Some(a), Some(b)) if a == b => { continue } // - else (a != b), not good, return false - (Some(a), Some(b)) => { return false } + (Some(_), Some(_)) => { return false } // Some None // None Some