Skip to content

Commit

Permalink
fix up some imports
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Oct 5, 2022
1 parent fba5975 commit 56e589c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! This module is soft-deprecated. Instead of using the `Context` type re-exported here,
//! use the one from the crate root.

use crate::{timestamp::context::shared_context, Builder, Timestamp, Uuid};
use crate::{Builder, Timestamp, Uuid};

pub use crate::timestamp::context::Context;

Expand All @@ -16,7 +16,7 @@ impl Uuid {
/// as the source timestamp.
#[cfg(all(feature = "std", feature = "rng"))]
pub fn now_v1(node_id: &[u8; 6]) -> Self {
let ts = Timestamp::now(shared_context());
let ts = Timestamp::now(crate::timestamp::context::shared_context());

Self::new_v1(ts, node_id)
}
Expand Down
4 changes: 2 additions & 2 deletions src/v6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Note that you need to enable the `v6` Cargo feature
//! in order to use this module.

use crate::{timestamp::context::shared_context, Builder, Timestamp, Uuid};
use crate::{Builder, Timestamp, Uuid};

impl Uuid {
/// Create a new version 6 UUID using the current time value and a node id.
Expand All @@ -14,7 +14,7 @@ impl Uuid {
/// as the source timestamp.
#[cfg(all(feature = "std", feature = "rng"))]
pub fn now_v6(node_id: &[u8; 6]) -> Self {
let ts = Timestamp::now(shared_context());
let ts = Timestamp::now(crate::timestamp::context::shared_context());

Self::new_v6(ts, node_id)
}
Expand Down

0 comments on commit 56e589c

Please sign in to comment.