mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
Change error type for RequestParts::try_into_request (#639)
This commit is contained in:
committed by
David Pedersen
parent
9b4232b786
commit
455fc46bf3
@@ -14,16 +14,6 @@ impl Error {
|
||||
inner: error.into(),
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn downcast<T>(self) -> Result<T, Self>
|
||||
where
|
||||
T: StdError + 'static,
|
||||
{
|
||||
match self.inner.downcast::<T>() {
|
||||
Ok(t) => Ok(*t),
|
||||
Err(err) => Err(*err.downcast().unwrap()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Error {
|
||||
|
||||
Reference in New Issue
Block a user