From 21586706d97ef99569c22951e11296e478e18141 Mon Sep 17 00:00:00 2001 From: Jeb Rosen Date: Sat, 15 Jun 2019 10:48:51 -0700 Subject: [PATCH] Remove a few remaining 'extern crate' declarations. --- core/codegen/build.rs | 3 --- core/lib/build.rs | 3 --- core/lib/src/config/mod.rs | 2 +- core/lib/src/lib.rs | 2 -- 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/core/codegen/build.rs b/core/codegen/build.rs index 1f5c8131c1..75e4a537de 100644 --- a/core/codegen/build.rs +++ b/core/codegen/build.rs @@ -1,8 +1,5 @@ //! Ensures Rocket isn't compiled with an incompatible version of Rust. -extern crate yansi; -extern crate version_check; - use yansi::{Paint, Color::{Red, Yellow, Blue}}; // Specifies the minimum nightly version needed to compile Rocket. diff --git a/core/lib/build.rs b/core/lib/build.rs index ae6fb74460..0f71316dfe 100644 --- a/core/lib/build.rs +++ b/core/lib/build.rs @@ -1,8 +1,5 @@ //! Ensures Rocket isn't compiled with an incompatible version of Rust. -extern crate yansi; -extern crate version_check; - use yansi::{Paint, Color::{Red, Yellow, Blue}}; // Specifies the minimum nightly version needed to compile Rocket. diff --git a/core/lib/src/config/mod.rs b/core/lib/src/config/mod.rs index 2302b2a750..a3120d5535 100644 --- a/core/lib/src/config/mod.rs +++ b/core/lib/src/config/mod.rs @@ -483,7 +483,7 @@ mod test { const TEST_CONFIG_FILENAME: &'static str = "/tmp/testing/Rocket.toml"; // TODO: It's a shame we have to depend on lazy_static just for this. - lazy_static! { + lazy_static::lazy_static! { static ref ENV_LOCK: Mutex = Mutex::new(0); } diff --git a/core/lib/src/lib.rs b/core/lib/src/lib.rs index 92e528eef9..c20afa19a7 100644 --- a/core/lib/src/lib.rs +++ b/core/lib/src/lib.rs @@ -104,8 +104,6 @@ #[macro_use] extern crate log; #[macro_use] extern crate pear; -#[cfg(test)] #[macro_use] extern crate lazy_static; - #[doc(hidden)] #[macro_use] pub mod logger; pub mod local; pub mod request;