From fc43aa6dacd83a78503ad8714842af1dc25d955d Mon Sep 17 00:00:00 2001 From: Tglman Date: Sat, 9 Oct 2021 12:37:20 +0100 Subject: [PATCH] minor fix for allow to compile without persy dependency --- src/error.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index ef135fe..5cd370f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,4 +1,3 @@ -use persy::PersyError; use ruma::{ api::client::{ error::{Error as RumaError, ErrorKind}, @@ -9,6 +8,9 @@ use ruma::{ use thiserror::Error; use tracing::warn; +#[cfg(feature = "persy")] +use persy::PersyError; + #[cfg(feature = "conduit_bin")] use { crate::RumaResponse, @@ -141,6 +143,7 @@ where } } +#[cfg(feature = "persy")] impl> From> for Error { fn from(err: persy::PE) -> Self { Error::PersyError {