From bf152df3224ad0b1451b1e02dd52c51e8d712bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 15 Jul 2020 14:05:22 +0200 Subject: [PATCH] matrix-sdk: Hide some tracing imports behind the encryption flag. --- matrix_sdk/src/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index 99005340..af962e7a 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -29,7 +29,9 @@ use matrix_sdk_common::uuid::Uuid; use futures_timer::Delay as sleep; use std::future::Future; -use tracing::{debug, error, info, instrument, trace, warn}; +#[cfg(feature = "encryption")] +use tracing::{debug, warn}; +use tracing::{error, info, instrument, trace}; use http::Method as HttpMethod; use http::Response as HttpResponse;