Add axum::Error (#150)

Replace `BoxStdError` and supports downcasting
This commit is contained in:
David Pedersen
2021-08-07 19:56:44 +02:00
committed by GitHub
parent 4792d0c15c
commit 75b5615ccd
12 changed files with 88 additions and 65 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ use std::{
convert::Infallible,
ops::{Deref, DerefMut},
};
use tower::BoxError;
/// JSON Extractor/Response
///
@@ -89,7 +90,7 @@ where
T: DeserializeOwned,
B: http_body::Body + Send,
B::Data: Send,
B::Error: Into<tower::BoxError>,
B::Error: Into<BoxError>,
{
type Rejection = JsonRejection;