aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/client.rs b/src/client.rs
index 3dbca36..138b80c 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -14,8 +14,13 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-use error::Error;
-use item::ItemBuilder;
+use crate::{
+ error::Error,
+ item::ItemBuilder,
+ abook::AbookFetcher,
+ abconfig::ABConfigFetcher,
+ xchan::XChanFetcher,
+};
use reqwest::{
self,
header::{ACCEPT, CONTENT_TYPE},
@@ -25,9 +30,6 @@ use serde::Serialize;
use serde_urlencoded;
use std::collections::BTreeMap;
use std::io::Read;
-use abook::AbookFetcher;
-use abconfig::ABConfigFetcher;
-use xchan::XChanFetcher;
pub const ZOTAPI_ABOOK_PATH : &str = "/api/z/1.0/abook";
pub const ZOTAPI_ABCONFIG_PATH : &str = "/api/z/1.0/abconfig";