Replace use of get_param with param

This has been changed on Rocket master
This commit is contained in:
George Scrivener 2021-03-04 15:54:56 +00:00
parent 305971023d
commit 90f7c5ae5e
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ impl rocket::handler::Handler for FairingErrorRoute {
_: rocket::Data,
) -> rocket::handler::Outcome<'r> {
let status = request
.get_param::<u16>(0)
.param::<u16>(0)
.unwrap_or(Ok(0))
.unwrap_or_else(|e| {
error_!("Fairing Error Handling Route error: {:?}", e);