From ac40b453ec4ee5ac5ff6edb145f2042c948e52fd Mon Sep 17 00:00:00 2001 From: Matthew Dawson Date: Fri, 19 May 2017 23:51:43 +0000 Subject: [PATCH] fix(lib): Remove unused unimplemented! macro. This macro isn't used anywhere, std now has an unimplemented macro if we want to use it, and the nightly compiler now warns that this unused. This warning is a failure when compiling tests. --- src/lib.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0059e9cc67..5b0c0f602d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,18 +46,6 @@ pub use status::StatusCode::{self, Ok, BadRequest, NotFound}; pub use server::Server; pub use version::HttpVersion; -macro_rules! unimplemented { - () => ({ - panic!("unimplemented") - }); - ($msg:expr) => ({ - unimplemented!("{}", $msg) - }); - ($fmt:expr, $($arg:tt)*) => ({ - panic!(concat!("unimplemented: ", $fmt), $($arg)*) - }); -} - #[cfg(test)] mod mock; pub mod client;