chore: amendments

This commit is contained in:
Joshua Mo 2025-04-14 16:36:58 +01:00
parent bf652f47e8
commit a42ea43763
2 changed files with 5 additions and 8 deletions

View File

@ -123,12 +123,7 @@ where
fn layer(&self, inner: S) -> Self::Service {
let predicate = self.predicate.clone();
AwaitApprovalLayerServiceWithPredicate::new(
inner,
self.integration.clone(),
predicate,
self._t,
)
AwaitApprovalLayerServiceWithPredicate::new(inner, self.integration.clone(), predicate)
}
}
@ -145,12 +140,12 @@ where
R: Fn(&D) -> Pin<Box<dyn Future<Output = bool> + Send>> + Clone + Send + 'static,
D: Debug,
{
pub fn new(inner: S, integration: T, predicate: R, _t: PhantomData<D>) -> Self {
pub fn new(inner: S, integration: T, predicate: R) -> Self {
Self {
inner,
integration,
predicate,
_t,
_t: PhantomData,
}
}
}

View File

@ -27,6 +27,8 @@ pub enum ServiceError {
RequiredOptionNotFound(String),
#[error("{0}")]
Json(#[from] serde_json::Error),
#[error("Custom error: {0}")]
Other(#[from] Box<dyn std::error::Error + Send + Sync>),
}
impl ServiceError {