Skip to content

Commit e8b5481

Browse files
committed
Replace std::io::Error::new with Error::other.
Signed-off-by: Jason Volk <[email protected]>
1 parent c42a33f commit e8b5481

File tree

1 file changed

+1
-2
lines changed
  • crates/handlers/src/graphql

1 file changed

+1
-2
lines changed

crates/handlers/src/graphql/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ pub async fn post(
341341

342342
let request = async_graphql::http::receive_body(
343343
content_type,
344-
body.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
345-
.into_async_read(),
344+
body.map_err(std::io::Error::other).into_async_read(),
346345
MultipartOptions::default(),
347346
)
348347
.await?

0 commit comments

Comments
 (0)