Skip to content

Commit 7bc6c86

Browse files
committed
RawValue -> repr(transparent)
This code is from September 2018, at which point serde_json supported rustc back to 1.15. repr(transparent) stabilized in 1.28. Today the minimum required compiler is 1.36, so repr(transparent) is okay to use.
1 parent e41ee42 commit 7bc6c86

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(C)]
115+
#[repr(transparent)]
116116
#[cfg_attr(docsrs, doc(cfg(feature = "raw_value")))]
117117
pub struct RawValue {
118118
json: str,

0 commit comments

Comments
 (0)