From de2b6700ae01c82ca9902565d245358665b55260 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Thu, 6 Dec 2018 22:12:21 -0500 Subject: [PATCH] First of edition fixing --- examples/release_mode.rs | 2 +- examples/setup_warning.rs | 4 ++-- src/lib.rs | 8 ++++---- tests/allocations.rs | 2 +- tests/macros.rs | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/release_mode.rs b/examples/release_mode.rs index a184e07..d48228a 100644 --- a/examples/release_mode.rs +++ b/examples/release_mode.rs @@ -1,4 +1,4 @@ -extern crate qadapt; + use qadapt::allocate_panic; use qadapt::QADAPT; diff --git a/examples/setup_warning.rs b/examples/setup_warning.rs index fdc8e61..f7e85ba 100644 --- a/examples/setup_warning.rs +++ b/examples/setup_warning.rs @@ -1,5 +1,5 @@ -extern crate env_logger; -extern crate qadapt; +use env_logger; + use qadapt::allocate_panic; diff --git a/src/lib.rs b/src/lib.rs index b11062e..a835e6e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,14 +11,14 @@ //! Please also take a look at [qadapt-macro](https://github.com/bspeice/qadapt/tree/master/qadapt-macro) //! for some helper macros to make working with QADAPT a bit easier. #![deny(missing_docs)] -extern crate libc; + #[macro_use] extern crate log; -extern crate qadapt_macro; -extern crate spin; + + // thread_id is necessary because `std::thread::current()` panics if we have not yet // allocated a `thread_local!{}` it depends on. -extern crate thread_id; +use thread_id; // Re-export the proc macros to use by other code pub use qadapt_macro::*; diff --git a/tests/allocations.rs b/tests/allocations.rs index 474be54..3e6fb67 100644 --- a/tests/allocations.rs +++ b/tests/allocations.rs @@ -1,4 +1,4 @@ -extern crate qadapt; + use qadapt::enter_protected; use qadapt::exit_protected; diff --git a/tests/macros.rs b/tests/macros.rs index 455a204..8adaaaf 100644 --- a/tests/macros.rs +++ b/tests/macros.rs @@ -1,4 +1,4 @@ -extern crate qadapt; + use std::io; use qadapt::allocate_panic;