Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make Uuid a newtype #268

Merged
merged 1 commit into from
Jun 23, 2018
Merged

make Uuid a newtype #268

merged 1 commit into from
Jun 23, 2018

Conversation

kinggoesgaming
Copy link
Member

I'm submitting a ...

  • bug fix
  • feature enhancement
  • deprecation or removal
  • refactor

Description

  • Convert Uuid into a newtype.
  • Use Uuid::from_uuid_bytes (as the main constructor) to construct a Uuid where possible

Motivation

We treat Uuid like a newtype, this makes it more obvious

Tests

All tests passing

Related Issue(s)

#266

Signed-off-by: Hunar Roop Kahlon <[email protected]>
@Dylan-DPC-zz
Copy link
Member

Dylan-DPC-zz commented Jun 20, 2018

What's the gain in this?

@kinggoesgaming
Copy link
Member Author

kinggoesgaming commented Jun 20, 2018

@Dylan-DPC As far as I can see there is no particular gain. However, I am preparing this for consistency as the the new adapters will be newtypes (see #256)

@Dylan-DPC-zz
Copy link
Member

bors: r+

bors bot added a commit that referenced this pull request Jun 22, 2018
268: make Uuid a newtype r=Dylan-DPC a=kinggoesgaming

**I'm submitting a ...**
  - [ ] bug fix
  - [ ] feature enhancement
  - [ ] deprecation or removal
  - [x] refactor

# Description
* Convert `Uuid` into a newtype.
* Use `Uuid::from_uuid_bytes` (as the main constructor) to construct a `Uuid` where possible

# Motivation
We treat `Uuid` like a newtype, this makes it more obvious

# Tests
All tests passing

# Related Issue(s)
#266


Co-authored-by: Hunar Roop Kahlon <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jun 22, 2018

Build failed

@Dylan-DPC-zz
Copy link
Member

Nightly builds failed due to rust-lang/rust#51699

@Dylan-DPC-zz
Copy link
Member

bors: try

@Dylan-DPC-zz
Copy link
Member

bors: r+

bors bot added a commit that referenced this pull request Jun 23, 2018
268: make Uuid a newtype r=Dylan-DPC a=kinggoesgaming

**I'm submitting a ...**
  - [ ] bug fix
  - [ ] feature enhancement
  - [ ] deprecation or removal
  - [x] refactor

# Description
* Convert `Uuid` into a newtype.
* Use `Uuid::from_uuid_bytes` (as the main constructor) to construct a `Uuid` where possible

# Motivation
We treat `Uuid` like a newtype, this makes it more obvious

# Tests
All tests passing

# Related Issue(s)
#266


Co-authored-by: Hunar Roop Kahlon <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jun 23, 2018

@bors bors bot merged commit 7cde2b1 into breaking Jun 23, 2018
@Dylan-DPC-zz Dylan-DPC-zz deleted the uuid-newtype branch June 23, 2018 18:39
@uuid-rs uuid-rs deleted a comment from bors bot Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants