diff --git a/src/bytes.rs b/src/bytes.rs index 3842989..ad0902b 100644 --- a/src/bytes.rs +++ b/src/bytes.rs @@ -37,7 +37,7 @@ use serde::ser::{Serialize, Serializer}; /// # } /// ``` #[derive(Eq, Ord)] -#[repr(transparent)] +#[cfg_attr(not(doc), repr(transparent))] pub struct Bytes { bytes: [u8], }