From 8eb1fff93f3a753aa63231dc62fd368b84273f02 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 3 Jul 2017 15:37:24 -0700 Subject: [PATCH] Silence incorrect unmanaged state warnings. --- examples/config/tests/common/mod.rs | 2 ++ examples/fairings/src/main.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/examples/config/tests/common/mod.rs b/examples/config/tests/common/mod.rs index b5d11742..7bc0431f 100644 --- a/examples/config/tests/common/mod.rs +++ b/examples/config/tests/common/mod.rs @@ -1,3 +1,5 @@ +#![allow(unmanaged_state)] + use rocket::{self, State}; use rocket::fairing::AdHoc; use rocket::config::{self, Config, Environment, LoggingLevel}; diff --git a/examples/fairings/src/main.rs b/examples/fairings/src/main.rs index 1355d850..e7aa8281 100644 --- a/examples/fairings/src/main.rs +++ b/examples/fairings/src/main.rs @@ -1,5 +1,6 @@ #![feature(plugin)] #![plugin(rocket_codegen)] +#![allow(unmanaged_state)] extern crate rocket;