File tree 1 file changed +2
-2
lines changed
library/std/src/sys/pal/unix
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pub const TIMESPEC_MAX: libc::timespec =
10
10
// This additional constant is only used when calling
11
11
// `libc::pthread_cond_timedwait`.
12
12
#[ cfg( target_os = "nto" ) ]
13
- pub ( super ) const TIMESPEC_MAX_CAPPED : libc:: timespec = libc:: timespec {
13
+ pub ( in crate :: sys ) const TIMESPEC_MAX_CAPPED : libc:: timespec = libc:: timespec {
14
14
tv_sec : ( u64:: MAX / NSEC_PER_SEC ) as i64 ,
15
15
tv_nsec : ( u64:: MAX % NSEC_PER_SEC ) as i64 ,
16
16
} ;
@@ -204,7 +204,7 @@ impl Timespec {
204
204
// On QNX Neutrino, the maximum timespec for e.g. pthread_cond_timedwait
205
205
// is 2^64 nanoseconds
206
206
#[ cfg( target_os = "nto" ) ]
207
- pub ( super ) fn to_timespec_capped ( & self ) -> Option < libc:: timespec > {
207
+ pub ( in crate :: sys ) fn to_timespec_capped ( & self ) -> Option < libc:: timespec > {
208
208
// Check if timeout in nanoseconds would fit into an u64
209
209
if ( self . tv_nsec . 0 as u64 )
210
210
. checked_add ( ( self . tv_sec as u64 ) . checked_mul ( NSEC_PER_SEC ) ?)
You can’t perform that action at this time.
0 commit comments