From c4e4830f324ff1c0f01b6a592fda64a193e3679c Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 23 Jun 2021 11:52:19 +0200 Subject: [PATCH] Add missing doc(cfg) attrs --- matrix_sdk/src/error.rs | 2 ++ 1 file changed, 2 insertions(+) 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),