From 5db816277b6d419d12a6a7e0208ca5b513fb1038 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 9 Aug 2024 18:10:00 +0000 Subject: [PATCH] add from serde_json error to enum Signed-off-by: Jason Volk --- src/core/error/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/error/mod.rs b/src/core/error/mod.rs index 3bf3c883..5047aa07 100644 --- a/src/core/error/mod.rs +++ b/src/core/error/mod.rs @@ -52,6 +52,8 @@ pub enum Error { #[error("Join error: {0}")] JoinError(#[from] tokio::task::JoinError), #[error(transparent)] + Json(#[from] serde_json::Error), + #[error(transparent)] Path(#[from] axum::extract::rejection::PathRejection), #[error("Regex error: {0}")] Regex(#[from] regex::Error),