refactor(lib): macro_use the mime! macro

This commit is contained in:
Sean McArthur
2015-05-11 18:48:00 -07:00
parent 085d7b0752
commit a6dd9c8476

View File

@@ -139,6 +139,9 @@ extern crate num_cpus;
extern crate traitobject;
extern crate typeable;
#[macro_use]
extern crate mime as mime_crate;
#[macro_use]
extern crate log;
@@ -146,7 +149,6 @@ extern crate log;
extern crate test;
pub use mimewrapper::mime;
pub use url::Url;
pub use client::Client;
pub use error::{Result, Error};
@@ -185,9 +187,9 @@ pub mod uri;
pub mod version;
mod mimewrapper {
/// Re-exporting the mime crate, for convenience.
extern crate mime;
/// Re-exporting the mime crate, for convenience.
pub mod mime {
pub use mime_crate::*;
}
#[allow(unconditional_recursion)]