style(commands): cargo fmt
This commit is contained in:
@@ -2567,13 +2567,18 @@ pub async fn begin_graph_calendar_link(app: AppHandle) -> WaResult<serde_json::V
|
||||
_ => return fail("authorization was cancelled or failed".into()),
|
||||
};
|
||||
|
||||
let tokens =
|
||||
match oauth::exchange_code(&provider, &client_id, &code, &verifier, &redirect_uri)
|
||||
.await
|
||||
{
|
||||
Ok(t) => t,
|
||||
Err(e) => return fail(e.to_string()),
|
||||
};
|
||||
let tokens = match oauth::exchange_code(
|
||||
&provider,
|
||||
&client_id,
|
||||
&code,
|
||||
&verifier,
|
||||
&redirect_uri,
|
||||
)
|
||||
.await
|
||||
{
|
||||
Ok(t) => t,
|
||||
Err(e) => return fail(e.to_string()),
|
||||
};
|
||||
|
||||
let credential_ref = "wa-calendar-graph".to_string();
|
||||
let Ok(json) = serde_json::to_string(&tokens) else {
|
||||
|
||||
Reference in New Issue
Block a user