diff --git a/src/lib.rs b/src/lib.rs index 7dda217..135b333 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1991,13 +1991,7 @@ fn actual_request_response(options: &Cors, origin: &str) -> Response { pub fn catch_all_options_routes() -> Vec { vec![ rocket::Route::ranked( - isize::max_value(), - http::Method::Options, - "/", - CatchAllOptionsRouteHandler {}, - ), - rocket::Route::ranked( - isize::max_value(), + isize::MAX, http::Method::Options, "/", CatchAllOptionsRouteHandler {},