mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-25 00:00:23 +02:00
Add Error::into_inner (#1476)
This commit is contained in:
@@ -14,6 +14,11 @@ impl Error {
|
||||
inner: error.into(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Convert an `Error` back into the underlying boxed trait object.
|
||||
pub fn into_inner(self) -> BoxError {
|
||||
self.inner
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Error {
|
||||
|
||||
Reference in New Issue
Block a user