File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -273,9 +273,3 @@ macro_rules! __item {
273
273
$i
274
274
} ;
275
275
}
276
-
277
- macro_rules! ptr_addr_of {
278
- ( $place: expr) => {
279
- :: core:: ptr:: addr_of!( $place)
280
- } ;
281
- }
Original file line number Diff line number Diff line change @@ -382,16 +382,16 @@ cfg_if! {
382
382
// unsafe code here is required in the stable, but not in nightly
383
383
#[ allow( unused_unsafe) ]
384
384
pub static CLOCK_MONOTONIC : clockid_t =
385
- unsafe { clockid_t( ptr_addr_of !( _CLOCK_MONOTONIC) ) } ;
385
+ clockid_t( core :: ptr :: addr_of !( _CLOCK_MONOTONIC) ) ;
386
386
#[ allow( unused_unsafe) ]
387
387
pub static CLOCK_PROCESS_CPUTIME_ID : clockid_t =
388
- unsafe { clockid_t( ptr_addr_of !( _CLOCK_PROCESS_CPUTIME_ID) ) } ;
388
+ clockid_t( core :: ptr :: addr_of !( _CLOCK_PROCESS_CPUTIME_ID) ) ;
389
389
#[ allow( unused_unsafe) ]
390
390
pub static CLOCK_REALTIME : clockid_t =
391
- unsafe { clockid_t( ptr_addr_of !( _CLOCK_REALTIME) ) } ;
391
+ clockid_t( core :: ptr :: addr_of !( _CLOCK_REALTIME) ) ;
392
392
#[ allow( unused_unsafe) ]
393
393
pub static CLOCK_THREAD_CPUTIME_ID : clockid_t =
394
- unsafe { clockid_t( ptr_addr_of !( _CLOCK_THREAD_CPUTIME_ID) ) } ;
394
+ clockid_t( core :: ptr :: addr_of !( _CLOCK_THREAD_CPUTIME_ID) ) ;
395
395
}
396
396
}
397
397
You can’t perform that action at this time.
0 commit comments