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 traitobject; | ||||||
| extern crate typeable; | extern crate typeable; | ||||||
|  |  | ||||||
|  | #[macro_use] | ||||||
|  | extern crate mime as mime_crate; | ||||||
|  |  | ||||||
| #[macro_use] | #[macro_use] | ||||||
| extern crate log; | extern crate log; | ||||||
|  |  | ||||||
| @@ -146,7 +149,6 @@ extern crate log; | |||||||
| extern crate test; | extern crate test; | ||||||
|  |  | ||||||
|  |  | ||||||
| pub use mimewrapper::mime; |  | ||||||
| pub use url::Url; | pub use url::Url; | ||||||
| pub use client::Client; | pub use client::Client; | ||||||
| pub use error::{Result, Error}; | pub use error::{Result, Error}; | ||||||
| @@ -185,9 +187,9 @@ pub mod uri; | |||||||
| pub mod version; | pub mod version; | ||||||
|  |  | ||||||
|  |  | ||||||
| mod mimewrapper { | /// Re-exporting the mime crate, for convenience. | ||||||
|     /// Re-exporting the mime crate, for convenience. | pub mod mime { | ||||||
|     extern crate mime; |     pub use mime_crate::*; | ||||||
| } | } | ||||||
|  |  | ||||||
| #[allow(unconditional_recursion)] | #[allow(unconditional_recursion)] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user