aboutsummaryrefslogtreecommitdiffstats
path: root/src/build_rss.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-04-15 00:15:02 +0200
committerTeddy Wing2018-04-15 00:15:02 +0200
commit3a88d7caf02bdb7da3753423d938cbd226879f0c (patch)
treec1b15773259aee9bcb778d1597a710d1149df57d /src/build_rss.rs
parenta937e1a2d79a64d525eae4cebb8a39cba123f3ac (diff)
downloadmeetup-find-events-rss-3a88d7caf02bdb7da3753423d938cbd226879f0c.tar.bz2
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.
Diffstat (limited to 'src/build_rss.rs')
-rw-r--r--src/build_rss.rs4
1 files changed, 2 insertions, 2 deletions
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<String>,
page: Option<String>,
-) -> Result<(), Box<Error>> {
+) -> Result<()> {
let client = client::Client::new(token);
let events = client.find_upcoming_events(
latitude,