refactor(lib): macro_use the mime! macro
This commit is contained in:
10
src/lib.rs
10
src/lib.rs
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user