Fix duplication of oauth2 definition

This commit is contained in:
Debo Mac
2021-10-05 09:44:28 +02:00
committed by Sebastian Thiel
parent 861a9d8281
commit 5a1a7b1fb2
2 changed files with 2 additions and 3 deletions

View File

@@ -46,7 +46,6 @@ extern crate serde_derive;
extern crate hyper;
extern crate serde;
extern crate serde_json;
extern crate yup_oauth2 as oauth2;
extern crate mime;
extern crate url;
@@ -57,4 +56,4 @@ pub mod client;
pub use api::${hub_type};
pub use client::{Result, Error, Delegate};
// Re-export the yup_oauth2 crate, that is required to call some methods of the hub and the client
pub use oauth2;
pub extern crate yup_oauth2 as oauth2;

View File

@@ -1,6 +1,6 @@
use clap::{App, SubCommand};
use mime::Mime;
use oauth2::{ApplicationSecret, ConsoleApplicationSecret};
use crate::oauth2::{ApplicationSecret, ConsoleApplicationSecret};
use serde_json as json;
use serde_json::value::Value;