From bbf68408173bbbc79f4a94b74d713f4549e03a9c Mon Sep 17 00:00:00 2001 From: Raminder Singh Date: Fri, 6 Sep 2024 19:55:48 +0530 Subject: [PATCH] fix formatting --- api/src/routes/sources.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/routes/sources.rs b/api/src/routes/sources.rs index c6149ba..bf7a479 100644 --- a/api/src/routes/sources.rs +++ b/api/src/routes/sources.rs @@ -53,7 +53,9 @@ impl SourceError { impl ResponseError for SourceError { fn status_code(&self) -> StatusCode { match self { - SourceError::DatabaseError(_) | SourceError::SourcesDb(_) => StatusCode::INTERNAL_SERVER_ERROR, + SourceError::DatabaseError(_) | SourceError::SourcesDb(_) => { + StatusCode::INTERNAL_SERVER_ERROR + } SourceError::SourceNotFound(_) => StatusCode::NOT_FOUND, SourceError::TenantIdMissing | SourceError::TenantIdIllFormed => { StatusCode::BAD_REQUEST