From 10370e94a1940c59862a69461456c6594366d66d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 4 Feb 2023 19:58:45 -0800 Subject: [PATCH] Hide repr attribute from documentation --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3510d19..213033b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -367,7 +367,7 @@ pub use anyhow as format_err; /// # Ok(()) /// } /// ``` -#[repr(transparent)] +#[cfg_attr(not(doc), repr(transparent))] pub struct Error { inner: Own, }