Skip to content

Commit 34a8e83

Browse files
authored
code tidy (#7235)
Signed-off-by: tison <wander4096@gmail.com>
1 parent 7d6481b commit 34a8e83

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

core/core/src/raw/http_util/client.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub static GLOBAL_REQWEST_CLIENT: LazyLock<reqwest::Client> = LazyLock::new(reqw
5252
/// HttpFetcher is a type erased [`HttpFetch`].
5353
pub type HttpFetcher = Arc<dyn HttpFetchDyn>;
5454

55-
/// A HTTP client instance for OpenDAL's services.
55+
/// An HTTP client instance for OpenDAL's services.
5656
///
5757
/// # Notes
5858
///
@@ -132,9 +132,9 @@ impl HttpClient {
132132
impl reqsign_core::HttpSend for HttpClient {
133133
fn http_send<'life0, 'async_trait>(
134134
&'life0 self,
135-
req: http::Request<Bytes>,
136-
) -> std::pin::Pin<
137-
Box<dyn Future<Output = reqsign_core::Result<http::Response<Bytes>>> + Send + 'async_trait>,
135+
req: Request<Bytes>,
136+
) -> Pin<
137+
Box<dyn Future<Output = reqsign_core::Result<Response<Bytes>>> + Send + 'async_trait>,
138138
>
139139
where
140140
'life0: 'async_trait,
@@ -150,17 +150,17 @@ impl reqsign_core::HttpSend for HttpClient {
150150
})?;
151151

152152
let (parts, body) = resp.into_parts();
153-
Ok(http::Response::from_parts(parts, body.to_bytes()))
153+
Ok(Response::from_parts(parts, body.to_bytes()))
154154
})
155155
}
156156
}
157157

158158
impl reqsign_core::HttpSend for AccessorInfoHttpSend {
159159
fn http_send<'life0, 'async_trait>(
160160
&'life0 self,
161-
req: http::Request<Bytes>,
162-
) -> std::pin::Pin<
163-
Box<dyn Future<Output = reqsign_core::Result<http::Response<Bytes>>> + Send + 'async_trait>,
161+
req: Request<Bytes>,
162+
) -> Pin<
163+
Box<dyn Future<Output = reqsign_core::Result<Response<Bytes>>> + Send + 'async_trait>,
164164
>
165165
where
166166
'life0: 'async_trait,

0 commit comments

Comments
 (0)