clippy
All checks were successful
/ check (aarch64-unknown-linux-musl) (push) Successful in 11s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 11s
/ check (x86_64-unknown-linux-musl) (push) Successful in 11s
/ publish-crate (push) Successful in 11s
/ clippy (push) Successful in 13s
/ tests (push) Successful in 20s
/ build (aarch64-unknown-linux-musl) (push) Successful in 12s
/ build (armv7-unknown-linux-musleabihf) (push) Successful in 12s
/ build (x86_64-unknown-linux-musl) (push) Successful in 11s
/ publish-forgejo (push) Successful in 5s
All checks were successful
/ check (aarch64-unknown-linux-musl) (push) Successful in 11s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 11s
/ check (x86_64-unknown-linux-musl) (push) Successful in 11s
/ publish-crate (push) Successful in 11s
/ clippy (push) Successful in 13s
/ tests (push) Successful in 20s
/ build (aarch64-unknown-linux-musl) (push) Successful in 12s
/ build (armv7-unknown-linux-musleabihf) (push) Successful in 12s
/ build (x86_64-unknown-linux-musl) (push) Successful in 11s
/ publish-forgejo (push) Successful in 5s
This commit is contained in:
parent
bcac76dbe9
commit
ce38df5b41
2 changed files with 3 additions and 4 deletions
|
@ -285,9 +285,8 @@ impl CpuPool {
|
|||
}
|
||||
|
||||
async {
|
||||
match opt {
|
||||
Some(item) => self.state.queue.push(item).await,
|
||||
None => {}
|
||||
if let Some(item) = opt {
|
||||
self.state.queue.push(item).await;
|
||||
}
|
||||
|
||||
let current_threads = self
|
||||
|
|
|
@ -158,7 +158,7 @@ impl Drop for Listener<'_> {
|
|||
let flags = self.woken.swap(RESOLVED, Ordering::AcqRel);
|
||||
|
||||
if flags == RESOLVED {
|
||||
return;
|
||||
// do nothing
|
||||
} else if flags == NOTIFIED_ONE {
|
||||
let mut guard = self.state.lock().expect("not poisoned");
|
||||
guard.notify_one();
|
||||
|
|
Loading…
Reference in a new issue