Skip to content

Commit

Permalink
Remove more unnecessary 'extern crate' declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
jebrosen committed Jun 15, 2019
1 parent 6e113cf commit 823ef8b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions core/codegen/build.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 0 additions & 3 deletions core/lib/build.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion core/lib/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<usize> = Mutex::new(0);
}

Expand Down
2 changes: 0 additions & 2 deletions core/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 823ef8b

Please sign in to comment.