diff --git a/src/lib.rs b/src/lib.rs index f3800de..56fca20 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1030,6 +1030,7 @@ pub struct Cors { /// [Resource Processing Model](https://www.w3.org/TR/cors/#resource-processing-model). /// /// Defaults to `All`. + /// #[cfg_attr(feature = "serialization", serde(default))] pub allowed_origins: AllowedOrigins, /// The list of methods which the allowed origins are allowed to access for diff --git a/tests/manual.rs b/tests/manual.rs index f868f1a..c12cc7a 100644 --- a/tests/manual.rs +++ b/tests/manual.rs @@ -49,7 +49,6 @@ fn owned<'r>() -> impl Responder<'r> { // The following routes tests that the routes can be compiled with manual CORS /// `Responder` with String -#[allow(unmounted_route)] #[get("/")] fn responder_string(options: State) -> impl Responder { options @@ -59,7 +58,6 @@ fn responder_string(options: State) -> impl Responder { struct TestState; /// Borrow something else from Rocket with lifetime `'r` -#[allow(unmounted_route)] #[get("/")] fn borrow<'r>(options: State<'r, Cors>, test_state: State<'r, TestState>) -> impl Responder<'r> { let borrow = test_state.inner();