Fix generated example invocations - they compile now.

This commit is contained in:
Sebastian Thiel
2023-04-17 14:55:45 +02:00
parent ad7c74af16
commit 41fd613b86
2 changed files with 1 additions and 2 deletions

View File

@@ -261,7 +261,7 @@ let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = ${hub_type}::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth);\
let mut hub = ${hub_type}::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);\
</%def>
## You will still have to set the filter for your comment type - either nothing, or rust_doc_comment !

View File

@@ -38,7 +38,6 @@ async fn main() {
let connector = hyper_rustls::HttpsConnectorBuilder::new().with_native_roots()
.https_or_http()
.enable_http1()
.enable_http2()
.build();
match Engine::new(matches, connector).await {