From 584d519783e826966a61eb83b3180a518485aa8e Mon Sep 17 00:00:00 2001 From: Chris Henk Date: Fri, 21 Jul 2023 15:24:08 -0700 Subject: [PATCH] working build --- .github/workflows/rust.yml | 37 +++++++++++++++++++------------------ src/task.rs | 2 -- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 15508a7..dec9d1e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,22 +22,23 @@ jobs: run: cargo test --verbose - name: Docs run: cargo doc - coverage: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features --no-fail-fast - env: - CARGO_INCREMENTAL: '0' - RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' - RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' - - uses: actions-rs/grcov@v0.1 +# coverage: +# +# runs-on: ubuntu-latest +# +# steps: +# - uses: actions/checkout@v1 +# - uses: actions-rs/toolchain@v1 +# with: +# toolchain: nightly +# override: true +# - uses: actions-rs/cargo@v1 +# with: +# command: test +# args: --all-features --no-fail-fast +# env: +# CARGO_INCREMENTAL: '0' +# RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' +# RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' +# - uses: actions-rs/grcov@v0.1 diff --git a/src/task.rs b/src/task.rs index 6ebff70..8510be8 100644 --- a/src/task.rs +++ b/src/task.rs @@ -12,8 +12,6 @@ pub(crate) struct PollingTaskInnerState { pub(crate) interval: AtomicU64, } -const X: u64 = 5; - /// General purpose RAII polling task that executes a closure with a given frequency. /// /// When [`PollingTask`] is dropped, the background thread is signaled to perform a clean exit at