mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
4 lines
193 B
Rust
4 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")
|
||
|
}
|