(e: &(dyn std::error::Error + 'static))
| 293 | |
| 294 | fn is_body_too_large(e: &axum::Error) -> bool { |
| 295 | fn inner(e: &(dyn std::error::Error + 'static)) -> bool { |
| 296 | if e.downcast_ref::<http_body_util::LengthLimitError>() |
| 297 | .is_some() |
| 298 | { |
| 299 | return true; |
| 300 | } |
| 301 | match e.source() { |
| 302 | Some(src) => inner(src), |
| 303 | None => false, |
| 304 | } |
| 305 | } |
| 306 | inner(e) |
| 307 | } |
| 308 |
no test coverage detected