reduce Error-related codegen; add PoisonError
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user