diff --git a/matrix_sdk/src/error.rs b/matrix_sdk/src/error.rs index a060c217..cce76ace 100644 --- a/matrix_sdk/src/error.rs +++ b/matrix_sdk/src/error.rs @@ -58,6 +58,7 @@ pub enum Error { MatrixError(#[from] MatrixError), /// An error occurred in the crypto store. + #[cfg(feature = "encryption")] #[error(transparent)] CryptoStoreError(#[from] CryptoStoreError),