Skip to content

Commit 05429e2

Browse files
committed
use io::Error::other shorthand
1 parent d5fef09 commit 05429e2

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(futures::io::Error::other)
331331
.into_async_read();
332332

333333
Ok(HttpRequestResultRaw {

0 commit comments

Comments
 (0)