Skip to content

Commit

Permalink
style: fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
roderickvd committed Nov 29, 2024
1 parent f51b332 commit d6a66da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ impl Uuid {
/// let uuid = Uuid::fast_v4();
/// println!("{}", uuid); // Prints a UUID like "550e8400-e29b-41d4-a716-446655440000"
/// ```
#[must_use] pub fn fast_v4() -> Self {
#[must_use]
pub fn fast_v4() -> Self {
let random_bytes = fastrand::u128(..).to_ne_bytes();
let uuid = uuid::Builder::from_random_bytes(random_bytes).into_uuid();
Self(uuid)
Expand Down

0 comments on commit d6a66da

Please sign in to comment.