From 3a88d7caf02bdb7da3753423d938cbd226879f0c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 15 Apr 2018 00:15:02 +0200 Subject: Add 'error-chain' to the main library Use 'error-chain' here too. Seems like this will be a pretty useful library. Change the include in the 'meetup' `lib.rs` to allow us to export `meetup::Error` instead of `meetup::errors::Error` to be consistent with the error types of the other third-party libraries we're using. --- meetup/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meetup/src') diff --git a/meetup/src/lib.rs b/meetup/src/lib.rs index ba62ff2..36cb13b 100644 --- a/meetup/src/lib.rs +++ b/meetup/src/lib.rs @@ -8,5 +8,8 @@ extern crate serde_derive; extern crate serde_json; pub mod client; -pub mod errors; pub mod event; + +mod errors; + +pub use errors::Error; -- cgit v1.2.3