reduce Error-related codegen; add PoisonError

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-11-03 12:42:43 +00:00
parent 52f09fdb51
commit 8d251003a2
5 changed files with 16 additions and 1 deletions

View file

@ -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);