[fractal] Remove redundant uses



commit 36b090533bdd293038c6a2a6225c268875772f65
Author: Alejandro Domínguez <adomu net-c com>
Date:   Fri Dec 28 18:06:37 2018 +0100

    Remove redundant uses

 fractal-matrix-api/src/backend/room.rs     | 2 --
 fractal-matrix-api/src/backend/stickers.rs | 1 -
 fractal-matrix-api/src/error.rs            | 6 ------
 fractal-matrix-api/src/model/message.rs    | 2 --
 fractal-matrix-api/src/util.rs             | 2 --
 5 files changed, 13 deletions(-)
---
diff --git a/fractal-matrix-api/src/backend/room.rs b/fractal-matrix-api/src/backend/room.rs
index b2a95ac0..6f1a8c6f 100644
--- a/fractal-matrix-api/src/backend/room.rs
+++ b/fractal-matrix-api/src/backend/room.rs
@@ -1,7 +1,5 @@
 use log::error;
-use serde_json;
 use serde_json::json;
-use urlencoding;
 
 use std::fs::File;
 use std::io::prelude::*;
diff --git a/fractal-matrix-api/src/backend/stickers.rs b/fractal-matrix-api/src/backend/stickers.rs
index 30598450..e459144b 100644
--- a/fractal-matrix-api/src/backend/stickers.rs
+++ b/fractal-matrix-api/src/backend/stickers.rs
@@ -1,5 +1,4 @@
 use chrono::prelude::*;
-use md5;
 use serde_json::json;
 
 use crate::backend::BackendData;
diff --git a/fractal-matrix-api/src/error.rs b/fractal-matrix-api/src/error.rs
index 6405da8a..b344b560 100644
--- a/fractal-matrix-api/src/error.rs
+++ b/fractal-matrix-api/src/error.rs
@@ -1,13 +1,7 @@
-use cairo;
-use glib;
-use regex;
-use reqwest;
 use std::ffi::OsString;
 use std::io;
 use std::time::SystemTimeError;
-use url;
 
-use serde_json;
 use serde_json::Value as JsonValue;
 
 #[derive(Debug)]
diff --git a/fractal-matrix-api/src/model/message.rs b/fractal-matrix-api/src/model/message.rs
index f9ebc6f3..d6409166 100644
--- a/fractal-matrix-api/src/model/message.rs
+++ b/fractal-matrix-api/src/model/message.rs
@@ -1,9 +1,7 @@
 use chrono::prelude::*;
 use chrono::DateTime;
 use chrono::TimeZone;
-use md5;
 use serde::{Deserialize, Serialize};
-use serde_json;
 use serde_json::Value as JsonValue;
 use std::cmp::Ordering;
 use std::collections::HashMap;
diff --git a/fractal-matrix-api/src/util.rs b/fractal-matrix-api/src/util.rs
index 2e6a74ee..885f7781 100644
--- a/fractal-matrix-api/src/util.rs
+++ b/fractal-matrix-api/src/util.rs
@@ -1,5 +1,4 @@
 use log::error;
-use reqwest;
 use serde_json::json;
 
 use serde_json::Value as JsonValue;
@@ -9,7 +8,6 @@ use std::collections::HashMap;
 use std::io::Read;
 use std::path::Path;
 use std::path::PathBuf;
-use tree_magic;
 use url::percent_encoding::{utf8_percent_encode, USERINFO_ENCODE_SET};
 use url::Url;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]