diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 5cde165..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: 2 -updates: -- package-ecosystem: cargo - directory: "/" - schedule: - interval: daily - open-pull-requests-limit: 10 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d8af1b2..f4b77d5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,13 +1,6 @@ name: coverage -on: - push: - branches: - - master - pull_request: - branches: - - master - +on: [ "push" , "pull_request" ] jobs: test: name: coverage diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6724628..a9d44c6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,6 +16,6 @@ jobs: - name: Run fmt run: cargo fmt --all -- --check - name: Build - run: cargo build --verbose --all-features + run: cargo build --verbose - name: Run tests - run: cargo test --verbose --all-features + run: cargo test --verbose diff --git a/Cargo.toml b/Cargo.toml index c3396da..15a05bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dynqueue" -version = "0.3.1-alpha.0" +version = "0.2.1" authors = ["Harald Hoyer "] edition = "2018" @@ -16,4 +16,4 @@ categories = [ "concurrency" ] [dependencies] rayon = "1.3" -crossbeam-queue = { version = "0.3", optional = true } +crossbeam-queue = { version = "0.2", optional = true } diff --git a/src/lib.rs b/src/lib.rs index 733cbf9..e822ae0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -198,7 +198,7 @@ impl Queue for SegQueue { #[inline(always)] fn pop(&self) -> Option { - SegQueue::pop(self) + SegQueue::pop(self).ok() } #[inline(always)]