File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ targets = [
27
27
]
28
28
29
29
[dependencies ]
30
- libc = { version = " 0.2.121 " , features = [ " extra_traits" ] }
30
+ libc = { version = " 0.2.125 " , features = [ " extra_traits" ] }
31
31
bitflags = " 1.1"
32
32
cfg-if = " 1.0"
33
33
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ impl ClockId {
42
42
}
43
43
44
44
/// Returns resolution of the clock id
45
- #[ cfg( not( any ( target_os = "redox" , target_os = "haiku" ) ) ) ]
45
+ #[ cfg( not( target_os = "redox" ) ) ]
46
46
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
47
47
pub fn res ( self ) -> Result < TimeSpec > {
48
48
clock_getres ( self )
@@ -212,7 +212,7 @@ impl std::fmt::Display for ClockId {
212
212
213
213
/// Get the resolution of the specified clock, (see
214
214
/// [clock_getres(2)](https://pubs.opengroup.org/onlinepubs/7908799/xsh/clock_getres.html)).
215
- #[ cfg( not( any ( target_os = "redox" , target_os = "haiku" ) ) ) ]
215
+ #[ cfg( not( target_os = "redox" ) ) ]
216
216
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
217
217
pub fn clock_getres ( clock_id : ClockId ) -> Result < TimeSpec > {
218
218
let mut c_time: MaybeUninit < libc:: timespec > = MaybeUninit :: uninit ( ) ;
Original file line number Diff line number Diff line change 8
8
use nix:: time:: clock_getcpuclockid;
9
9
use nix:: time:: { clock_gettime, ClockId } ;
10
10
11
- #[ cfg( not( any ( target_os = "redox" , target_os = "haiku" ) ) ) ]
11
+ #[ cfg( not( target_os = "redox" ) ) ]
12
12
#[ test]
13
13
pub fn test_clock_getres ( ) {
14
14
assert ! ( nix:: time:: clock_getres( ClockId :: CLOCK_REALTIME ) . is_ok( ) ) ;
@@ -32,7 +32,7 @@ pub fn test_clock_getcpuclockid() {
32
32
assert ! ( clock_gettime( clock_id) . is_ok( ) ) ;
33
33
}
34
34
35
- #[ cfg( not( any ( target_os = "redox" , target_os = "haiku" ) ) ) ]
35
+ #[ cfg( not( target_os = "redox" ) ) ]
36
36
#[ test]
37
37
pub fn test_clock_id_res ( ) {
38
38
assert ! ( ClockId :: CLOCK_REALTIME . res( ) . is_ok( ) ) ;
You can’t perform that action at this time.
0 commit comments