From eaa287cb3a873ca0513b11c8b9da6fbc956548d7 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 4 Feb 2023 20:57:40 -0800 Subject: [PATCH] Hide repr attribute from documentation --- src/raw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raw.rs b/src/raw.rs index a136a5214..6aa4ffcb6 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -112,7 +112,7 @@ use serde::ser::{Serialize, SerializeStruct, Serializer}; /// raw_value: Box, /// } /// ``` -#[repr(transparent)] +#[cfg_attr(not(doc), repr(transparent))] #[cfg_attr(docsrs, doc(cfg(feature = "raw_value")))] pub struct RawValue { json: str,