Skip to content

Commit

Permalink
refactor(lib): macro_use the mime! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed May 12, 2015
1 parent 085d7b0 commit a6dd9c8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,16 @@ extern crate num_cpus;
extern crate traitobject;
extern crate typeable;

#[macro_use]
extern crate mime as mime_crate;

#[macro_use]
extern crate log;

#[cfg(all(test, feature = "nightly"))]
extern crate test;


pub use mimewrapper::mime;
pub use url::Url;
pub use client::Client;
pub use error::{Result, Error};
Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit a6dd9c8

Please sign in to comment.