From 2fce566e57cedaf6f089ce91d06af4ffbd40e07f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 15 Apr 2018 14:51:28 +0200 Subject: Change import interface to `meetup::client::Client` Instead of doing `use meetup::client::Client`, do `use meetup::Client`. Makes it less redundant. --- meetup/src/lib.rs | 3 ++- src/build_rss.rs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/meetup/src/lib.rs b/meetup/src/lib.rs index 36cb13b..4383eda 100644 --- a/meetup/src/lib.rs +++ b/meetup/src/lib.rs @@ -7,9 +7,10 @@ extern crate serde; extern crate serde_derive; extern crate serde_json; -pub mod client; pub mod event; +mod client; mod errors; +pub use client::Client; pub use errors::Error; diff --git a/src/build_rss.rs b/src/build_rss.rs index d6ab35f..d19b046 100644 --- a/src/build_rss.rs +++ b/src/build_rss.rs @@ -1,6 +1,6 @@ use errors::*; -use meetup::client; +use meetup; use meetup_rss; /// Requests the Meetup API, generates an RSS feed from the resulting events, @@ -13,7 +13,7 @@ pub fn write_feed( radius: Option, page: Option, ) -> Result<()> { - let client = client::Client::new(token); + let client = meetup::Client::new(token); let events = client.find_upcoming_events( latitude, longitude, -- cgit v1.2.3