Refactor to async closures.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-07-24 04:07:27 +00:00
1 parent cca0f20148
commit c8d35cca57
36 files changed
+78 -80

No files matched your search

+2 -2
View File
@@ -173,7 +173,7 @@ impl Services {
pub async fn clear_cache(&self) {
self.services()
.for_each(|service| async move {
.for_each(async |service| {
service.clear_cache().await;
})
.await;
@@ -182,7 +182,7 @@ impl Services {
pub async fn memory_usage(&self) -> Result<String> {
self.services()
.map(Ok)
.try_fold(String::new(), |mut out, service| async move {
.try_fold(String::new(), async |mut out, service| {
service.memory_usage(&mut out).await?;
Ok(out)
})