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 {