From 2b129964537f5c17f0269de1d20777a8de241627 Mon Sep 17 00:00:00 2001 From: StNicolay Date: Tue, 6 Aug 2024 16:39:43 +0300 Subject: [PATCH] Removed E in ErrorHandlingExt --- src/errors.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index 74a9d69..023554b 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,4 +1,4 @@ -use std::{borrow::Cow, convert::Infallible}; +use std::borrow::Cow; use axum::{http::StatusCode, response::IntoResponse}; @@ -43,7 +43,7 @@ impl IntoResponse for GeneralError { pub type GeneralResult = Result; -pub trait ErrorHandlingExt +pub trait ErrorHandlingExt where Self: Sized, { @@ -58,7 +58,7 @@ where } } -impl> ErrorHandlingExt for Result { +impl> ErrorHandlingExt for Result { fn handle( self, status_code: StatusCode, @@ -72,7 +72,7 @@ impl> ErrorHandlingExt for Result { } } -impl ErrorHandlingExt for Option { +impl ErrorHandlingExt for Option { fn handle( self, status_code: StatusCode,