File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -384,15 +384,17 @@ cfg_if! {
384
384
} else {
385
385
// unsafe code here is required in the stable, but not in nightly
386
386
#[ allow( unused_unsafe) ]
387
- pub static CLOCK_MONOTONIC : clockid_t = clockid_t( core:: ptr:: addr_of!( _CLOCK_MONOTONIC) ) ;
387
+ pub static CLOCK_MONOTONIC : clockid_t =
388
+ unsafe { clockid_t( core:: ptr:: addr_of!( _CLOCK_MONOTONIC) ) } ;
388
389
#[ allow( unused_unsafe) ]
389
390
pub static CLOCK_PROCESS_CPUTIME_ID : clockid_t =
390
- clockid_t( core:: ptr:: addr_of!( _CLOCK_PROCESS_CPUTIME_ID) ) ;
391
+ unsafe { clockid_t( core:: ptr:: addr_of!( _CLOCK_PROCESS_CPUTIME_ID) ) } ;
391
392
#[ allow( unused_unsafe) ]
392
- pub static CLOCK_REALTIME : clockid_t = clockid_t( core:: ptr:: addr_of!( _CLOCK_REALTIME) ) ;
393
+ pub static CLOCK_REALTIME : clockid_t =
394
+ unsafe { clockid_t( core:: ptr:: addr_of!( _CLOCK_REALTIME) ) } ;
393
395
#[ allow( unused_unsafe) ]
394
396
pub static CLOCK_THREAD_CPUTIME_ID : clockid_t =
395
- clockid_t( core:: ptr:: addr_of!( _CLOCK_THREAD_CPUTIME_ID) ) ;
397
+ unsafe { clockid_t( core:: ptr:: addr_of!( _CLOCK_THREAD_CPUTIME_ID) ) } ;
396
398
}
397
399
}
398
400
You can’t perform that action at this time.
0 commit comments