From 72026848021d34615bbb23333e2f59df9b85dd41 Mon Sep 17 00:00:00 2001 From: Nikita Bishonen Date: Tue, 28 Jun 2022 15:03:44 +0400 Subject: [PATCH] Update README.md `HttpsConnector` has no methods described in example, changed to `HttpsConnectorBuilder` which has. --- gen/sheets4/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/sheets4/README.md b/gen/sheets4/README.md index 5c9d1a4fb8..deec3cf845 100644 --- a/gen/sheets4/README.md +++ b/gen/sheets4/README.md @@ -93,7 +93,7 @@ extern crate google_sheets4 as sheets4; use sheets4::api::ValueRange; use sheets4::{Result, Error}; use std::default::Default; -use sheets4::{Sheets, oauth2, hyper, hyper_rustls}; +use sheets4::{Sheets, oauth2, hyper, hyper_rustls::{self, ConfigBuilderExt}}; // Get an ApplicationSecret instance by some means. It contains the `client_id` and // `client_secret`, among other things. @@ -107,7 +107,7 @@ let auth = oauth2::InstalledFlowAuthenticator::builder( secret, oauth2::InstalledFlowReturnMethod::HTTPRedirect, ).build().await.unwrap(); -let mut hub = Sheets::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); +let mut hub = Sheets::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth); // As the method needs a request, you would usually fill it with the desired information // into the respective structure. Some of the parts shown here might not be applicable ! // Values shown here are possibly random and not representative !