Fix various warnings generated by build: (#43)
-removed conservative_impl_trait as it is no longer needed with the current compiler. -removed allow(unmounted_route) as rocket no longer provides this linter.
This commit is contained in:
parent
e11e973da8
commit
f4858e1029
|
@ -1030,6 +1030,7 @@ pub struct Cors {
|
||||||
/// [Resource Processing Model](https://www.w3.org/TR/cors/#resource-processing-model).
|
/// [Resource Processing Model](https://www.w3.org/TR/cors/#resource-processing-model).
|
||||||
///
|
///
|
||||||
/// Defaults to `All`.
|
/// Defaults to `All`.
|
||||||
|
///
|
||||||
#[cfg_attr(feature = "serialization", serde(default))]
|
#[cfg_attr(feature = "serialization", serde(default))]
|
||||||
pub allowed_origins: AllowedOrigins,
|
pub allowed_origins: AllowedOrigins,
|
||||||
/// The list of methods which the allowed origins are allowed to access for
|
/// The list of methods which the allowed origins are allowed to access for
|
||||||
|
|
|
@ -49,7 +49,6 @@ fn owned<'r>() -> impl Responder<'r> {
|
||||||
// The following routes tests that the routes can be compiled with manual CORS
|
// The following routes tests that the routes can be compiled with manual CORS
|
||||||
|
|
||||||
/// `Responder` with String
|
/// `Responder` with String
|
||||||
#[allow(unmounted_route)]
|
|
||||||
#[get("/")]
|
#[get("/")]
|
||||||
fn responder_string(options: State<Cors>) -> impl Responder {
|
fn responder_string(options: State<Cors>) -> impl Responder {
|
||||||
options
|
options
|
||||||
|
@ -59,7 +58,6 @@ fn responder_string(options: State<Cors>) -> impl Responder {
|
||||||
|
|
||||||
struct TestState;
|
struct TestState;
|
||||||
/// Borrow something else from Rocket with lifetime `'r`
|
/// Borrow something else from Rocket with lifetime `'r`
|
||||||
#[allow(unmounted_route)]
|
|
||||||
#[get("/")]
|
#[get("/")]
|
||||||
fn borrow<'r>(options: State<'r, Cors>, test_state: State<'r, TestState>) -> impl Responder<'r> {
|
fn borrow<'r>(options: State<'r, Cors>, test_state: State<'r, TestState>) -> impl Responder<'r> {
|
||||||
let borrow = test_state.inner();
|
let borrow = test_state.inner();
|
||||||
|
|
Loading…
Reference in New Issue