refactor: cleanup

This commit is contained in:
zhom committed 2026-10-03 02:24:34 +04:00
1 parent 130cfda791
commit bddb5063ad
31 files changed
+2787 -399

No files matched your search

+4
View File
@@ -120,6 +120,10 @@ pub fn transport_failure(message: &str) -> BackendFailure {
}
}
pub fn carries_code(body: &str) -> bool {
from_body(0, body).is_some()
}
fn code_for_status(status: u16, codes: FailureCodes) -> &'static str {
match status {
400 | 422 => codes.bad_request,