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;