Replace use of get_param with param
This has been changed on Rocket master
This commit is contained in:
parent
305971023d
commit
90f7c5ae5e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue