mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-03 06:51:50 -06:00
chore: resolve SonarCloud maintainability issues
This commit is contained in:
@@ -220,7 +220,7 @@ impl WorkQueue {
|
||||
}
|
||||
// The parser validity token can change independently of this queue. Bound the
|
||||
// wait so failed generations are released even while the consumer is paused.
|
||||
state = self.changed.wait_timeout(state, Duration::from_millis(25)).unwrap_or_else(|p| p.into_inner()).0;
|
||||
state = self.changed.wait_timeout(state, Duration::from_millis(25)).unwrap_or_else(std::sync::PoisonError::into_inner).0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user