From 114911f80095e18809ac421444eed6eea2eff4a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 18 Mar 2020 14:17:22 +0100 Subject: [PATCH] base_client: Only import the std Result type if encryption is enabled. --- src/base_client.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base_client.rs b/src/base_client.rs index 1c6fb1db..398ffb3d 100644 --- a/src/base_client.rs +++ b/src/base_client.rs @@ -14,6 +14,8 @@ // limitations under the License. use std::collections::HashMap; + +#[cfg(feature = "encryption")] use std::result::Result as StdResult; use crate::api::r0 as api;