Tidy up some imports.

No more need to macro_use serde. Order the imports consistently (albeit
somewhat arbitrary), starting with items from this crate, followed by
std, followed by external crates.
This commit is contained in:
Glenn Griffin
2019-11-13 14:32:39 -08:00
parent ba0b8f366a
commit e5aa32b3cf
11 changed files with 32 additions and 48 deletions

View File

@@ -1,11 +1,10 @@
use crate::error::{JsonErrorOr, RefreshError};
use crate::types::ApplicationSecret;
use crate::types::{ApplicationSecret, Token};
use super::Token;
use chrono::Utc;
use futures_util::try_stream::TryStreamExt;
use hyper;
use hyper::header;
use serde::Deserialize;
use url::form_urlencoded;
/// Implements the [OAuth2 Refresh Token Flow](https://developers.google.com/youtube/v3/guides/authentication#devices).