reduce Error-related codegen; add PoisonError
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
52f09fdb51
commit
8d251003a2
5 changed files with 16 additions and 1 deletions
|
@ -26,6 +26,7 @@ impl axum::response::IntoResponse for Error {
|
|||
}
|
||||
|
||||
impl From<Error> for UiaaResponse {
|
||||
#[inline]
|
||||
fn from(error: Error) -> Self {
|
||||
if let Error::Uiaa(uiaainfo) = error {
|
||||
return Self::AuthResponse(uiaainfo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue