Skip to content

Commit

Permalink
Merge #468
Browse files Browse the repository at this point in the history
468: make uuid structs repr(transparent) r=KodrAus a=kinggoesgaming

**I'm submitting a(n)** feature

# Description
Make the following structs `#[repr(transparent)]`:
* `Uuid`
* `Hyphenated`
* `HyphenatedRef`
* `Simple`
* `SimpleRef`
* `Urn`
* `UrnRef`

# Tests
Tests should pass as is

# Related Issue(s)
closes #463 

Co-authored-by: Hunar Roop Kahlon <[email protected]>
Co-authored-by: Hunar Roop Kahlon <[email protected]>
  • Loading branch information
3 people authored Sep 4, 2020
2 parents 400e804 + b0d8527 commit 1ed4ff2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ pub enum Variant {

/// A Universally Unique Identifier (UUID).
#[derive(Clone, Copy, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[repr(transparent)]
pub struct Uuid(Bytes);

impl Uuid {
Expand Down

0 comments on commit 1ed4ff2

Please sign in to comment.