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. --- src/build_rss.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/build_rss.rs') diff --git a/src/build_rss.rs b/src/build_rss.rs index 93430a1..0c31a43 100644 --- a/src/build_rss.rs +++ b/src/build_rss.rs @@ -1,4 +1,4 @@ -use std::error::Error; +use errors::*; use meetup::client; use meetup_rss; @@ -12,7 +12,7 @@ pub fn write_feed( end_date_range: String, radius: Option, page: Option, -) -> Result<(), Box> { +) -> Result<()> { let client = client::Client::new(token); let events = client.find_upcoming_events( latitude, -- cgit v1.2.3