Skip to content

Commit

Permalink
Higher-ranked lifetime error workaround
Browse files Browse the repository at this point in the history
Workaround to a known issue of rustc:
rust-lang/rust#104382
  • Loading branch information
linyinfeng committed Aug 11, 2023
1 parent f8048d8 commit c72ebbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ impl Client {
))
}
})
.boxed() // Workaround to rustc issue https://github.com/rust-lang/rust/issues/104382
.buffer_unordered(self.config.max_concurrent_download)
.try_collect()
.await?;
Expand Down Expand Up @@ -365,6 +366,7 @@ impl Client {
Ok(())
}
})
.boxed() // Workaround to rustc issue https://github.com/rust-lang/rust/issues/104382
.buffer_unordered(self.config.max_concurrent_upload)
.try_for_each(future::ok)
.await?;
Expand Down

0 comments on commit c72ebbc

Please sign in to comment.