Skip to content

Commit 0b06d1c

Browse files
committed
fix(client): remove unnecessarily restricting change to build_stream API of ClientRequest
1 parent da5cec5 commit 0b06d1c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/client/client_request.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use futures_util::io;
2727
use reqwest::Method;
2828
use serde::de::DeserializeOwned;
2929
use serde::{Deserialize, Serialize};
30-
use std::pin::Pin;
3130
use tokio::io::{AsyncBufReadExt, BufReader};
3231
use tokio_stream::wrappers::LinesStream;
3332
use tokio_util::io::StreamReader;
@@ -100,7 +99,7 @@ pub trait StreamingRequest: ClientRequest {
10099

101100
fn build_stream(
102101
response: reqwest::Response,
103-
) -> Pin<Box<impl Stream<Item = Result<Self::ItemType, ClientError>>>> {
102+
) -> impl Stream<Item = Result<Self::ItemType, ClientError>> {
104103
Box::pin(
105104
Self::lines_stream(response)
106105
.map(|line| {

0 commit comments

Comments
 (0)