Skip to content

Commit c7134c8

Browse files
committed
Fix a minor compilation error, possibly caused by rust-lang/rust#64292.
1 parent a3719c4 commit c7134c8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/lib/src/data/data.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ impl Data {
171171
pub fn stream_to_file<P: AsRef<Path> + Send + Unpin + 'static>(self, path: P) -> impl Future<Output = io::Result<u64>> {
172172
Box::pin(async move {
173173
let mut file = async_std::fs::File::create(path).await?;
174-
self.stream_to(&mut file).await
174+
let streaming = self.stream_to(&mut file);
175+
streaming.await
175176
})
176177
}
177178

core/lib/src/local/request.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ impl<'c> LocalRequest<'c> {
348348
#[inline(always)]
349349
pub async fn dispatch(mut self) -> LocalResponse<'c> {
350350
let r = self.long_lived_request();
351-
LocalRequest::_dispatch(self.client, r, self.request, &self.uri, self.data).await
351+
let dispatching = LocalRequest::_dispatch(self.client, r, self.request, &self.uri, self.data);
352+
dispatching.await
352353
}
353354

354355
/// Dispatches the request, returning the response.

0 commit comments

Comments
 (0)