Use #[allow(unreachable_patterns)] to simplify some macro code. (#163)

By allowing unreachable patterns, we don't have to have 'NotIrrefutable' variants in the Request, Response, and Error enums.

This commit also removes an unused macro in an example.
This commit is contained in:
Tim
2017-08-02 13:54:06 -07:00
committed by GitHub
parent 85d9416750
commit 0b843512dd
2 changed files with 12 additions and 20 deletions

View File

@@ -57,10 +57,6 @@ impl baz::FutureService for Baz {
}
}
macro_rules! pos {
() => (concat!(file!(), ":", line!()))
}
fn main() {
let _ = env_logger::init();
let bar_client = {