diff --git a/matrix_sdk/src/error.rs b/matrix_sdk/src/error.rs index ca9c77d8..69d8e072 100644 --- a/matrix_sdk/src/error.rs +++ b/matrix_sdk/src/error.rs @@ -120,11 +120,13 @@ pub enum Error { /// An error occurred in the crypto store. #[cfg(feature = "encryption")] + #[cfg_attr(feature = "docs", doc(cfg(encryption)))] #[error(transparent)] CryptoStoreError(#[from] CryptoStoreError), /// An error occurred during decryption. #[cfg(feature = "encryption")] + #[cfg_attr(feature = "docs", doc(cfg(encryption)))] #[error(transparent)] DecryptorError(#[from] DecryptorError),