From 9621b235c4bfdff705c74133e262e042e39794e1 Mon Sep 17 00:00:00 2001 From: ice_iix Date: Sun, 28 Jun 2020 18:26:52 -0700 Subject: [PATCH] protocol: fix redundant imports, single_component_path_imports --- protocol/src/format.rs | 1 - protocol/src/protocol/mod.rs | 3 --- protocol/src/protocol/mojang.rs | 1 - 3 files changed, 5 deletions(-) diff --git a/protocol/src/format.rs b/protocol/src/format.rs index 55cd4e2..49dfb46 100644 --- a/protocol/src/format.rs +++ b/protocol/src/format.rs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -use serde_json; use std::fmt; use std::mem; diff --git a/protocol/src/protocol/mod.rs b/protocol/src/protocol/mod.rs index 62d0acf..1d1cff6 100644 --- a/protocol/src/protocol/mod.rs +++ b/protocol/src/protocol/mod.rs @@ -18,10 +18,7 @@ use aes::Aes128; use cfb8::stream_cipher::{NewStreamCipher, StreamCipher}; use cfb8::Cfb8; -use hex; #[cfg(not(target_arch = "wasm32"))] -use reqwest; -use serde_json; use std_or_web::fs; pub mod forge; diff --git a/protocol/src/protocol/mojang.rs b/protocol/src/protocol/mojang.rs index ebfd55b..2e764f4 100644 --- a/protocol/src/protocol/mojang.rs +++ b/protocol/src/protocol/mojang.rs @@ -13,7 +13,6 @@ // limitations under the License. #[cfg(not(target_arch = "wasm32"))] -use reqwest; use serde_json::json; use sha1::{self, Digest};