summaryrefslogtreecommitdiffstats
path: root/src/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/builder.rs')
-rw-r--r--src/builder.rs22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/builder.rs b/src/builder.rs
index cd086ca..bf7500f 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -1,21 +1,17 @@
//! Interfaces for building various structures
-// Std lib
-use std::cmp::Eq;
-use std::collections::{BTreeMap, HashMap};
-use std::hash::Hash;
-use std::iter::IntoIterator;
-use std::iter::Peekable;
-
-// Third party
+use crate::{errors::Error, Result};
use serde::Serialize;
-use serde_json::{self, map::Map, Value};
+use serde_derive::Serialize;
+use serde_json::{self, json, map::Map, Value};
+use std::{
+ cmp::Eq,
+ collections::{BTreeMap, HashMap},
+ hash::Hash,
+ iter::{IntoIterator, Peekable},
+};
use url::form_urlencoded;
-// Ours
-use errors::Error;
-use Result;
-
#[derive(Default)]
pub struct PullOptions {
params: HashMap<&'static str, String>,