From 730bc96b40b088280331cf6d363c75a07026262f Mon Sep 17 00:00:00 2001 From: achimcc Date: Fri, 8 Jul 2022 18:21:17 +0200 Subject: [PATCH] fix clippy --- crates/backend/src/services/gist/create.rs | 9 ++++----- crates/backend/src/services/gist/load.rs | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/crates/backend/src/services/gist/create.rs b/crates/backend/src/services/gist/create.rs index b2fb2bb03..383e8cf3c 100644 --- a/crates/backend/src/services/gist/create.rs +++ b/crates/backend/src/services/gist/create.rs @@ -94,11 +94,10 @@ pub async fn route_gist_create( github_token: String, req: Json, ) -> impl Responder { - let gist_result = spawn(async move { create_gist(github_token, req.clone().code) }) - .await - .expect("") - .compat() - .await; + let gist_result = + spawn(async move { create_gist(github_token, req.clone().code).compat().await }) + .await + .expect("Failed to create Gist"); match gist_result { Err(error) => { diff --git a/crates/backend/src/services/gist/load.rs b/crates/backend/src/services/gist/load.rs index f33480a5a..d01c025f7 100644 --- a/crates/backend/src/services/gist/load.rs +++ b/crates/backend/src/services/gist/load.rs @@ -80,11 +80,10 @@ pub async fn route_gist_load( github_token: String, req: Json, ) -> impl Responder { - let gist_result = spawn(async move { load_gist(github_token, req.clone().id) }) - .await - .expect("") - .compat() - .await; + let gist_result = + spawn(async move { load_gist(github_token, req.clone().id).compat().await }) + .await + .expect("Failed to load Gist"); match gist_result { Err(error) => {