From c8bd7f77d8414465dac6283ff86405752bc32084 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Fri, 3 Jun 2022 17:37:54 +0100 Subject: [PATCH] Fix doc-test preamble to use new builder API --- src/mako/api/lib/lib.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mako/api/lib/lib.mako b/src/mako/api/lib/lib.mako index 3a7ea6bf82..70de2bc7d6 100644 --- a/src/mako/api/lib/lib.mako +++ b/src/mako/api/lib/lib.mako @@ -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::HttpsConnector::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().enable_http2().build()), auth);\ ## You will still have to set the filter for your comment type - either nothing, or rust_doc_comment !