1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-29 03:08:31 +00:00

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