Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions-rs/cargo@v1
with:
command: install
args: cargo-all-features
- uses: actions-rs/cargo@v1
with:
command: build-all-features
args: -F ${{ matrix.channel }} --all-targets
- uses: actions-rs/cargo@v1
with:
command: test-all-features
args: -F ${{ matrix.channel }} --lib
toolchain: ${{ matrix.toolchain }}
- name: Install cargo-all-features
run: cargo install cargo-all-features
- name: Build all feature combinations
run: cargo build-all-features -- -F ${{ matrix.channel }} --all-targets
- name: Test all feature combinations
run: cargo test-all-features -- -F ${{ matrix.channel }} --lib
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ Cargo.lock
/target

lcov.info
.omc/
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ core_affinity = { version = "0.8.1", optional = true }
# functionality of these crates internally (other than in tests)
flume = { version = "0.11.1", optional = true }
loole = { version = "0.4.0", optional = true }
# required with the `async` feature
tokio = { version = "1", optional = true }

[dev-dependencies]
divan = "0.1.17"
Expand All @@ -48,6 +50,7 @@ harness = false
[features]
default = ["local-batch"]
affinity = ["dep:core_affinity"]
async = ["tokio"]
local-batch = []
retry = []
crossbeam = []
Expand Down
2 changes: 1 addition & 1 deletion src/hive/inner/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl<W: Worker, Q: Queen<Kind = W>, T: TaskQueues<Q::Kind>> Shared<Q, T> {
}

/// Returns the mutex guard for the results of spawing worker threads.
pub fn spawn_results(&self) -> MutexGuard<Vec<Result<JoinHandle<()>, SpawnError>>> {
pub fn spawn_results(&self) -> MutexGuard<'_, Vec<Result<JoinHandle<()>, SpawnError>>> {
self.spawn_results.lock()
}

Expand Down
Loading