aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/loop.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-20 01:16:50 +0900
committernsfisis <nsfisis@gmail.com>2026-06-20 02:22:41 +0900
commitefec43b3b8827820cf35fe1b73d8e33f5fe84eb4 (patch)
treea62bbba72324de48be5f8e689559f8d9e288fc61 /crates/shirabe/src/util/loop.rs
parentcac18ef73a39b4ac41fa4d6ccb753804d4c42cb7 (diff)
downloadphp-shirabe-efec43b3b8827820cf35fe1b73d8e33f5fe84eb4.tar.gz
php-shirabe-efec43b3b8827820cf35fe1b73d8e33f5fe84eb4.tar.zst
php-shirabe-efec43b3b8827820cf35fe1b73d8e33f5fe84eb4.zip
refactor: auto-fix clippy warnings
Diffstat (limited to 'crates/shirabe/src/util/loop.rs')
-rw-r--r--crates/shirabe/src/util/loop.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/crates/shirabe/src/util/loop.rs b/crates/shirabe/src/util/loop.rs
index 8cbd49d..2a0e6d3 100644
--- a/crates/shirabe/src/util/loop.rs
+++ b/crates/shirabe/src/util/loop.rs
@@ -18,9 +18,8 @@ impl Loop {
) -> Self {
http_downloader.borrow_mut().enable_async();
- let process_executor = process_executor.map(|pe| {
+ let process_executor = process_executor.inspect(|pe| {
pe.borrow_mut().enable_async();
- pe
});
Self {
@@ -51,10 +50,10 @@ impl Loop {
// on a multi-thread runtime these futures should be driven concurrently instead of in order.
// The PHP progress bar is tied to the worker active-job count and is also deferred until then.
for promise in promises {
- if let Err(e) = promise.await {
- if uncaught.is_none() {
- uncaught = Some(e);
- }
+ if let Err(e) = promise.await
+ && uncaught.is_none()
+ {
+ uncaught = Some(e);
}
}