Enable doc testing of Uuid::new_v4 example

The doc testing of the Uuid::new_v4() example was currently disabled,
but after fixing the errors in df0dc49 the test is now working again.
This commit is contained in:
Christian Kjaer Laustsen 2021-07-24 13:39:54 +02:00
parent df0dc490ff
commit a0dcc9bf34

View File

@ -87,7 +87,7 @@
//! //!
//! To create a new random (V4) UUID and print it out in hexadecimal form: //! To create a new random (V4) UUID and print it out in hexadecimal form:
//! //!
//! ```ignore,rust //! ```rust
//! // Note that this requires the `v4` feature enabled in the uuid crate. //! // Note that this requires the `v4` feature enabled in the uuid crate.
//! //!
//! use uuid::Uuid; //! use uuid::Uuid;
@ -95,7 +95,7 @@
//! fn main() { //! fn main() {
//! # #[cfg(feature = "v4")] { //! # #[cfg(feature = "v4")] {
//! let my_uuid = Uuid::new_v4(); //! let my_uuid = Uuid::new_v4();
//! println!("{}", my_uuid); //! println!("{}", my_uuid)
//! # } //! # }
//! } //! }
//! ``` //! ```