chore: upgrade Rust to 1.53.0 (#11021)

This commit is contained in:
Yusuke Tanaka 2021-06-18 04:56:30 +09:00 committed by GitHub
parent 2a66d5de01
commit 8031644e65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 26 additions and 33 deletions

View file

@ -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>> {