Skip to content

Commit e961d0d

Browse files
committed
Merge pull request #54 from michaelcontento/patch-1
Use ONCE.call_once instead of the old ONCE.doit
2 parents 9da1eee + 234a262 commit e961d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ pub fn precise_time_ns() -> u64 {
226226
denom: 0 };
227227
static ONCE: std::sync::Once = std::sync::ONCE_INIT;
228228
unsafe {
229-
ONCE.doit(|| {
229+
ONCE.call_once(|| {
230230
imp::mach_timebase_info(&mut TIMEBASE);
231231
});
232232
let time = imp::mach_absolute_time();

0 commit comments

Comments
 (0)