Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
achimcc authored and achimcc committed Jul 8, 2022
1 parent c232da5 commit 730bc96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions crates/backend/src/services/gist/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,10 @@ pub async fn route_gist_create(
github_token: String,
req: Json<GistCreateRequest>,
) -> 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) => {
Expand Down
9 changes: 4 additions & 5 deletions crates/backend/src/services/gist/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@ pub async fn route_gist_load(
github_token: String,
req: Json<GistLoadRequest>,
) -> 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) => {
Expand Down

0 comments on commit 730bc96

Please sign in to comment.