Skip to content

Commit

Permalink
Merge pull request #50 from serde-rs/transparent
Browse files Browse the repository at this point in the history
Replace another conditional repr(transparent)
  • Loading branch information
dtolnay authored Mar 22, 2024
2 parents cc1f186 + 5cbd70d commit d382f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use serde::ser::{Serialize, Serializer};
/// # }
/// ```
#[derive(Eq, Ord)]
#[cfg_attr(not(doc), repr(transparent))]
#[repr(transparent)]
pub struct Bytes {
bytes: [u8],
}
Expand Down

0 comments on commit d382f06

Please sign in to comment.