@@ -23,11 +23,11 @@ struct Nanoseconds(u32);
23
23
24
24
#[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
25
25
pub struct SystemTime {
26
- pub ( in crate :: sys :: unix ) t : Timespec ,
26
+ pub ( super ) t : Timespec ,
27
27
}
28
28
29
29
#[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
30
- pub ( in crate :: sys :: unix ) struct Timespec {
30
+ pub ( super ) struct Timespec {
31
31
tv_sec : i64 ,
32
32
tv_nsec : Nanoseconds ,
33
33
}
@@ -239,11 +239,11 @@ impl From<libc::timespec> for Timespec {
239
239
not( target_arch = "riscv32" )
240
240
) ) ]
241
241
#[ repr( C ) ]
242
- pub ( in crate :: sys :: unix ) struct __timespec64 {
243
- pub ( in crate :: sys :: unix ) tv_sec : i64 ,
242
+ pub ( super ) struct __timespec64 {
243
+ pub ( super ) tv_sec : i64 ,
244
244
#[ cfg( target_endian = "big" ) ]
245
245
_padding : i32 ,
246
- pub ( in crate :: sys :: unix ) tv_nsec : i32 ,
246
+ pub ( super ) tv_nsec : i32 ,
247
247
#[ cfg( target_endian = "little" ) ]
248
248
_padding : i32 ,
249
249
}
@@ -255,7 +255,7 @@ pub(in crate::sys::unix) struct __timespec64 {
255
255
not( target_arch = "riscv32" )
256
256
) ) ]
257
257
impl __timespec64 {
258
- pub ( in crate :: sys :: unix ) fn new ( tv_sec : i64 , tv_nsec : i32 ) -> Self {
258
+ pub ( super ) fn new ( tv_sec : i64 , tv_nsec : i32 ) -> Self {
259
259
Self { tv_sec, tv_nsec, _padding : 0 }
260
260
}
261
261
}
0 commit comments