Skip to content

Commit

Permalink
Merge #188
Browse files Browse the repository at this point in the history
188: Add UuidVersion to the prelude r=Dylan-DPC a=kinggoesgaming

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

# Description
Add `UuidVersion` to the prelude.

# Motivation
With #181, `UuidVersion` is now stable, and as such can be used as part of the `prelude`

# Tests
N/A

# Related Issue(s)
#181, #166
  • Loading branch information
bors[bot] committed Mar 28, 2018
2 parents 05a59d4 + 4525524 commit cd2f98d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ pub enum UuidVersion {
/// Special case for `nil` [`Uuid`].
///
/// [`Uuid`]: struct.Uuid.html
Nil,
Nil = 0,
/// Version 1: MAC address
Mac = 1,
/// Version 2: DCE Security
Expand Down
7 changes: 4 additions & 3 deletions src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
//!
//! ## The core types
//!
//! [`uuid`]`::{`[`ParseError`], [`Uuid`], [`UuidVariant`]`}`: The fundamental
//! [`uuid`]`::{`[`ParseError`], [`Uuid`], [`UuidVariant`], [`UuidVersion`]`}`: The fundamental
//! types used in [`uuid`] crate.
//!
//! [`uuid`]: ../index.html
//! [`ParseError`]: ../enum.ParseError.html
//! [`Uuid`]: ../struct.Uuid.html
//! [`UuidVariant`]: enum.UuidVariant.html
//! [`UuidVariant`]: ../enum.UuidVariant.html
//! [`UuidVersion`]: ../enum.UuidVersion.html

#[doc(inline)]
pub use super::{ParseError, Uuid, UuidVariant};
pub use super::{ParseError, Uuid, UuidVariant, UuidVersion};

0 comments on commit cd2f98d

Please sign in to comment.