diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5cde165 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +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 f4b77d5..d8af1b2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,6 +1,13 @@ name: coverage -on: [ "push" , "pull_request" ] +on: + push: + branches: + - master + pull_request: + branches: + - master + jobs: test: name: coverage diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a9d44c6..6724628 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 + run: cargo build --verbose --all-features - name: Run tests - run: cargo test --verbose + run: cargo test --verbose --all-features diff --git a/Cargo.toml b/Cargo.toml index 15a05bb..c3396da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dynqueue" -version = "0.2.1" +version = "0.3.1-alpha.0" authors = ["Harald Hoyer "] edition = "2018" @@ -16,4 +16,4 @@ categories = [ "concurrency" ] [dependencies] rayon = "1.3" -crossbeam-queue = { version = "0.2", optional = true } +crossbeam-queue = { version = "0.3", optional = true } diff --git a/src/lib.rs b/src/lib.rs index e822ae0..733cbf9 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).ok() + SegQueue::pop(self) } #[inline(always)]