From 396903510686c056fe66ff9e2ea66afd0030bc5e Mon Sep 17 00:00:00 2001 From: Antony1060 Date: Thu, 23 Nov 2023 20:05:40 +0100 Subject: [PATCH] Misc --- src/gateway/endpoint.rs | 8 -------- src/utils/sha256.rs | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/gateway/endpoint.rs b/src/gateway/endpoint.rs index d9018d7..88f69c6 100644 --- a/src/gateway/endpoint.rs +++ b/src/gateway/endpoint.rs @@ -34,14 +34,6 @@ pub enum CCIPEndpointError { impl IntoResponse for CCIPEndpointError { fn into_response(self) -> Response { - // TODO: remove - if let CCIPEndpointError::ResolveError(x) = &self { - if let super::resolution::ResolveError::Unparsable = x { - return (axum::http::StatusCode::UNPROCESSABLE_ENTITY, x.to_string()) - .into_response(); - } - } - GatewayResponse::Error(self.to_string()).into_response() } } diff --git a/src/utils/sha256.rs b/src/utils/sha256.rs index 58b5228..3addcd1 100644 --- a/src/utils/sha256.rs +++ b/src/utils/sha256.rs @@ -5,4 +5,4 @@ pub fn hash>(data: T) -> Vec { hasher.update(data); hasher.finalize().as_slice().into() -} \ No newline at end of file +}