diff --git a/src/main.rs b/src/main.rs index f243265..e705e73 100644 --- a/src/main.rs +++ b/src/main.rs @@ -86,12 +86,11 @@ async fn some_work( Ok(_inner_response) => { Ok(()) } - Err(err) => Err(std::io::Error::new(std::io::ErrorKind::Other, + Err(err) => Err(std::io::Error::other( err.to_string())) } } - Err(err) => Err(std::io::Error::new( - std::io::ErrorKind::Other, + Err(err) => Err(std::io::Error::other( err.to_string(), )), }