Skip to content

Commit

Permalink
mob next [ci-skip] [ci skip] [skip ci]
Browse files Browse the repository at this point in the history
lastFile:crates/api/src/lib.rs
  • Loading branch information
mightyiam committed Oct 9, 2024
1 parent 35988e1 commit 4b7a09e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/api/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![warn(clippy::pedantic)]
use poem::{http::StatusCode, EndpointExt};
use poem::{http::StatusCode, web::Json, EndpointExt, Response};
use serde::{Deserialize, Serialize};
use sqlx::{migrate::MigrateError, Connection, PgConnection, PgPool};

Expand Down Expand Up @@ -98,7 +98,7 @@ impl poem::error::ResponseError for LandedError {
}
}

fn as_response(&self) -> poem::Response
fn as_response(&self) -> Response
where
Self: std::error::Error + Send + Sync + 'static,
{
Expand All @@ -110,6 +110,6 @@ impl poem::error::ResponseError for LandedError {
LandedError::ForPr(ForPrError::PrNotFound) => "Pull request not found.",
};

poem::Response::builder().status(self.status()).body(body)
Response::builder().status(self.status()).body(body)
}
}

0 comments on commit 4b7a09e

Please sign in to comment.