aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/abconfig.rs5
-rw-r--r--src/abook.rs6
-rw-r--r--src/channel_stream.rs5
-rw-r--r--src/client.rs3
-rw-r--r--src/group.rs7
-rw-r--r--src/item.rs5
-rw-r--r--src/network_stream.rs5
-rw-r--r--src/xchan.rs5
8 files changed, 9 insertions, 32 deletions
diff --git a/src/abconfig.rs b/src/abconfig.rs
index 36b3427..7957dea 100644
--- a/src/abconfig.rs
+++ b/src/abconfig.rs
@@ -14,10 +14,7 @@
// 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 crate::{
- client::Client,
- error::Error,
-};
+use crate::{client::Client, error::Error};
pub struct ABConfig;
diff --git a/src/abook.rs b/src/abook.rs
index 40ef5a4..8423872 100644
--- a/src/abook.rs
+++ b/src/abook.rs
@@ -14,11 +14,7 @@
// 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 crate::{
- client::Client,
- error::Error,
-};
-
+use crate::{client::Client, error::Error};
pub struct Abook;
diff --git a/src/channel_stream.rs b/src/channel_stream.rs
index f99ca1c..49f51e7 100644
--- a/src/channel_stream.rs
+++ b/src/channel_stream.rs
@@ -15,10 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-use crate::{
- client::Client,
- error::Error,
-};
+use crate::{client::Client, error::Error};
pub struct ChannelStream;
diff --git a/src/client.rs b/src/client.rs
index d37133f..5381286 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -47,8 +47,7 @@ impl Client {
where
T: Serialize + std::fmt::Debug,
{
- let mut r = self.base_url.clone()
- .join(path).unwrap();
+ let mut r = self.base_url.clone().join(path).unwrap();
if let Ok(a) = serde_qs::to_string(dbg!(args)) {
r.set_query(Some(&a));
diff --git a/src/group.rs b/src/group.rs
index e17addb..2ed8e92 100644
--- a/src/group.rs
+++ b/src/group.rs
@@ -14,16 +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 crate::{
- client::Client,
- error::Error,
-};
+use crate::{client::Client, error::Error};
use serde::Serialize;
pub struct Group;
pub fn group() -> Group {
- Group { }
+ Group {}
}
impl Group {
diff --git a/src/item.rs b/src/item.rs
index 846c674..cc0c143 100644
--- a/src/item.rs
+++ b/src/item.rs
@@ -14,10 +14,7 @@
// 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 crate::{
- client::Client,
- error::Error,
-};
+use crate::{client::Client, error::Error};
use serde::Serialize;
use std::collections::BTreeMap;
diff --git a/src/network_stream.rs b/src/network_stream.rs
index 48a04a7..8204458 100644
--- a/src/network_stream.rs
+++ b/src/network_stream.rs
@@ -15,10 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-use crate::{
- client::Client,
- error::Error,
-};
+use crate::{client::Client, error::Error};
pub struct NetworkStream;
diff --git a/src/xchan.rs b/src/xchan.rs
index 20bbe8d..2e42c39 100644
--- a/src/xchan.rs
+++ b/src/xchan.rs
@@ -14,10 +14,7 @@
// 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 crate::{
- client::Client,
- error::Error,
-};
+use crate::{client::Client, error::Error};
//use serde::{Serialize, Serializer};
use serde::Serialize;