From 986985464a9cab66075614b9a3d8ae375aaac745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 23 Apr 2020 12:43:59 +0200 Subject: [PATCH] rust-sdk: Remove some unused imports. --- src/async_client.rs | 4 +++- src/request_builder.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/async_client.rs b/src/async_client.rs index 8a4a5d60..beae3f49 100644 --- a/src/async_client.rs +++ b/src/async_client.rs @@ -13,7 +13,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -use std::collections::{BTreeMap, HashMap}; +#[cfg(feature = "encryption")] +use std::collections::BTreeMap; +use std::collections::HashMap; use std::convert::{TryFrom, TryInto}; use std::result::Result as StdResult; use std::sync::Arc; diff --git a/src/request_builder.rs b/src/request_builder.rs index 8d61d05d..f9d58d14 100644 --- a/src/request_builder.rs +++ b/src/request_builder.rs @@ -290,7 +290,7 @@ impl Into for MessagesRequestBuilder { #[cfg(test)] mod test { - use std::collections::{BTreeMap, HashMap}; + use std::collections::BTreeMap; use super::*; use crate::events::room::power_levels::NotificationPowerLevels;