Skip to content

Commit c42b724

Browse files
authored
Merge pull request #980 from serde-rs/docrepr
Hide repr attribute from documentation
2 parents 7bc6c86 + eaa287c commit c42b724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ use serde::ser::{Serialize, SerializeStruct, Serializer};
112112
/// raw_value: Box<RawValue>,
113113
/// }
114114
/// ```
115-
#[repr(transparent)]
115+
#[cfg_attr(not(doc), repr(transparent))]
116116
#[cfg_attr(docsrs, doc(cfg(feature = "raw_value")))]
117117
pub struct RawValue {
118118
json: str,

0 commit comments

Comments
 (0)