diff options
Diffstat (limited to 'src/time.rs')
| -rw-r--r-- | src/time.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/time.rs b/src/time.rs index 9917f54..4f5ab7f 100644 --- a/src/time.rs +++ b/src/time.rs @@ -143,6 +143,7 @@ mod clock { static AT: Mutex<Option<DateTime<Utc>>> = Mutex::new(None); static OWNER: Mutex<()> = Mutex::new(()); +// VirtualClock stays `pub`: lives in the `test-support`-gated clock module, behind the gated `virtualize()` that returns it. pub struct VirtualClock { _owner: MutexGuard<'static, ()>, } @@ -205,7 +206,7 @@ mod clock { } #[inline(always)] - pub fn wrap<F, T>(f: F) -> F + pub(super) fn wrap<F, T>(f: F) -> F where F: FnOnce() -> T + Send + 'static, T: Send + 'static, |
