Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rfdonnelly committed Sep 23, 2022
1 parent 4fcc26a commit a27745a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
6 changes: 4 additions & 2 deletions src/output/gcal.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -82,7 +82,9 @@ impl GCal {
Ok(gcal)
}

async fn create_hub(gauth: GAuth) -> Result<CalendarHub<Connector>, Box<dyn std::error::Error>> {
async fn create_hub(
gauth: GAuth,
) -> Result<CalendarHub<Connector>, Box<dyn std::error::Error>> {
let scopes = [SCOPE];
let token = gauth.auth().token(&scopes).await?;
info!(expiration_time=?token.expiration_time(), "Got token");
Expand Down
4 changes: 3 additions & 1 deletion src/output/gppl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ impl GPpl {
Ok(())
}

async fn create_hub(gauth: GAuth) -> Result<PeopleService<Connector>, Box<dyn std::error::Error>> {
async fn create_hub(
gauth: GAuth,
) -> Result<PeopleService<Connector>, Box<dyn std::error::Error>> {
let scopes = [SCOPE];
let token = gauth.auth().token(&scopes).await?;
info!(expiration_time=?token.expiration_time(), "Got token");
Expand Down

0 comments on commit a27745a

Please # to comment.