diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2021-06-18 04:56:30 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 15:56:30 -0400 |
commit | 8031644e65647bdc3a6a0561ad31da9228e9723d (patch) | |
tree | fb2e86a305e784583770e5e27694243d9f67b79b /test_util/src | |
parent | 2a66d5de01b584b7138084eb427c9ac09c254986 (diff) |
chore: upgrade Rust to 1.53.0 (#11021)
Diffstat (limited to 'test_util/src')
-rw-r--r-- | test_util/src/lib.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 68a407dda..2bc0f7468 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -298,11 +298,9 @@ async fn get_tls_config( }) .unwrap(); - return Ok(Arc::new(config)); - } - None => { - return Err(io::Error::new(io::ErrorKind::Other, "Cannot find key")); + Ok(Arc::new(config)) } + None => Err(io::Error::new(io::ErrorKind::Other, "Cannot find key")), } } @@ -369,7 +367,7 @@ async fn absolute_redirect( let file = tokio::fs::read(file_path).await.unwrap(); let file_resp = custom_headers(req.uri().path(), file); - return Ok(file_resp); + Ok(file_resp) } async fn main_server(req: Request<Body>) -> hyper::Result<Response<Body>> { |