mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-10-21 14:51:49 +02:00
refactor: cleanup
This commit is contained in:
1 parent
130cfda791
commit
bddb5063ad
31 files changed
+2787
-399
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user