Move to hyper 0.13.1!!!!

This commit is contained in:
Glenn Griffin
2019-12-17 16:00:31 -08:00
parent 348a59d96e
commit 9238153723
14 changed files with 40 additions and 72 deletions

View File

@@ -1,11 +1,8 @@
use yup_oauth2::DeviceFlowAuthenticator;
use std::path;
use tokio;
#[tokio::main]
async fn main() {
let app_secret = yup_oauth2::read_application_secret(path::Path::new("clientsecret.json"))
let app_secret = yup_oauth2::read_application_secret("clientsecret.json")
.await
.expect("clientsecret");
let auth = DeviceFlowAuthenticator::builder(app_secret)