mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +00:00
3 lines
193 B
Rust
3 lines
193 B
Rust
pub(crate) fn to_actix_status(status: reqwest::StatusCode) -> actix_web::http::StatusCode {
|
|
actix_web::http::StatusCode::from_u16(status.as_u16()).expect("status codes are always valid")
|
|
}
|