Skip to content

Commit e280de8

Browse files
committed
use std::io::Error::other() function
1 parent d548a8e commit e280de8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/default_async_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ impl HttpClient for ReqwestClient {
327327

328328
let body = resp
329329
.bytes_stream()
330-
.map_err(|e| futures::io::Error::new(futures::io::ErrorKind::Other, e))
330+
.map_err(std::io::Error::other)
331331
.into_async_read();
332332

333333
Ok(HttpRequestResultRaw {

0 commit comments

Comments
 (0)