From be4faf944bb97b6f1bd82b6e565ec0b0e4d801cc Mon Sep 17 00:00:00 2001 From: Lewin Bormann Date: Tue, 27 Oct 2020 15:25:16 +0100 Subject: [PATCH] drive_example: Make example compile again. Fixes #134 --- examples/drive_example/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/drive_example/src/main.rs b/examples/drive_example/src/main.rs index cada13c50..4226ac93f 100644 --- a/examples/drive_example/src/main.rs +++ b/examples/drive_example/src/main.rs @@ -11,7 +11,7 @@ use std::path::Path; use hyper::net::HttpsConnector; use hyper_native_tls::NativeTlsClient; -use google_drive3::Drive; +use google_drive3::DriveHub; use yup_oauth2::{ read_application_secret, ApplicationSecret, Authenticator, DefaultAuthenticatorDelegate, DiskTokenStorage, FlowType, @@ -37,7 +37,7 @@ fn main() { ); let client = hyper::Client::with_connector(HttpsConnector::new(NativeTlsClient::new().unwrap())); - let hub = Drive::new(client, authenticator); + let hub = DriveHub::new(client, authenticator); let (_resp, list_result) = hub .files()