Skip to content

Commit c72ebbc

Browse files
committed
Higher-ranked lifetime error workaround
Workaround to a known issue of rustc: rust-lang/rust#104382
1 parent f8048d8 commit c72ebbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ impl Client {
298298
))
299299
}
300300
})
301+
.boxed() // Workaround to rustc issue https://github.com/rust-lang/rust/issues/104382
301302
.buffer_unordered(self.config.max_concurrent_download)
302303
.try_collect()
303304
.await?;
@@ -365,6 +366,7 @@ impl Client {
365366
Ok(())
366367
}
367368
})
369+
.boxed() // Workaround to rustc issue https://github.com/rust-lang/rust/issues/104382
368370
.buffer_unordered(self.config.max_concurrent_upload)
369371
.try_for_each(future::ok)
370372
.await?;

0 commit comments

Comments
 (0)