diff --git a/crates/router/src/core/errors/utils.rs b/crates/router/src/core/errors/utils.rs index 07b5e2d7fb..62f77ae2d3 100644 --- a/crates/router/src/core/errors/utils.rs +++ b/crates/router/src/core/errors/utils.rs @@ -1,20 +1,16 @@ use crate::{core::errors, logger}; -pub trait StorageErrorExt { +pub trait StorageErrorExt { #[track_caller] - fn to_not_found_response( - self, - not_found_response: errors::ApiErrorResponse, - ) -> error_stack::Result; + fn to_not_found_response(self, not_found_response: E) -> error_stack::Result; #[track_caller] - fn to_duplicate_response( - self, - duplicate_response: errors::ApiErrorResponse, - ) -> error_stack::Result; + fn to_duplicate_response(self, duplicate_response: E) -> error_stack::Result; } -impl StorageErrorExt for error_stack::Result { +impl StorageErrorExt + for error_stack::Result +{ #[track_caller] fn to_not_found_response( self,