From a27745af1c0d71746afef345683d6518008ee2f0 Mon Sep 17 00:00:00 2001 From: Rob Donnelly Date: Fri, 23 Sep 2022 13:44:04 -0700 Subject: [PATCH] chore: cargo fmt --- src/main.rs | 4 +--- src/output/gcal.rs | 6 ++++-- src/output/gppl.rs | 4 +++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 564616a..c5e24df 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,4 @@ -use scma_gcal_sync::{ - DateSelect, Event, Web, GAuth, GCal, GPpl -}; +use scma_gcal_sync::{DateSelect, Event, GAuth, GCal, GPpl, Web}; use anyhow::Context; use clap::{AppSettings, ArgEnum, Parser}; diff --git a/src/output/gcal.rs b/src/output/gcal.rs index a20755c..21bf5d9 100644 --- a/src/output/gcal.rs +++ b/src/output/gcal.rs @@ -1,6 +1,6 @@ use crate::model::Event; -use crate::GAuth; use crate::Connector; +use crate::GAuth; use chrono::Duration; use futures::{stream, StreamExt, TryStreamExt}; @@ -82,7 +82,9 @@ impl GCal { Ok(gcal) } - async fn create_hub(gauth: GAuth) -> Result, Box> { + async fn create_hub( + gauth: GAuth, + ) -> Result, Box> { let scopes = [SCOPE]; let token = gauth.auth().token(&scopes).await?; info!(expiration_time=?token.expiration_time(), "Got token"); diff --git a/src/output/gppl.rs b/src/output/gppl.rs index cc3ddc8..9f0351e 100644 --- a/src/output/gppl.rs +++ b/src/output/gppl.rs @@ -174,7 +174,9 @@ impl GPpl { Ok(()) } - async fn create_hub(gauth: GAuth) -> Result, Box> { + async fn create_hub( + gauth: GAuth, + ) -> Result, Box> { let scopes = [SCOPE]; let token = gauth.auth().token(&scopes).await?; info!(expiration_time=?token.expiration_time(), "Got token");