File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ targets = [
2727]
2828
2929[dependencies ]
30- libc = { version = " 0.2.121 " , features = [ " extra_traits" ] }
30+ libc = { version = " 0.2.125 " , features = [ " extra_traits" ] }
3131bitflags = " 1.1"
3232cfg-if = " 1.0"
3333
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ impl ClockId {
4242 }
4343
4444 /// Returns resolution of the clock id
45- #[ cfg( not( any ( target_os = "redox" , target_os = "haiku" ) ) ) ]
45+ #[ cfg( not( target_os = "redox" ) ) ]
4646 #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
4747 pub fn res ( self ) -> Result < TimeSpec > {
4848 clock_getres ( self )
@@ -212,7 +212,7 @@ impl std::fmt::Display for ClockId {
212212
213213/// Get the resolution of the specified clock, (see
214214/// [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" ) ) ]
216216#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
217217pub fn clock_getres ( clock_id : ClockId ) -> Result < TimeSpec > {
218218 let mut c_time: MaybeUninit < libc:: timespec > = MaybeUninit :: uninit ( ) ;
Original file line number Diff line number Diff line change 88use nix:: time:: clock_getcpuclockid;
99use nix:: time:: { clock_gettime, ClockId } ;
1010
11- #[ cfg( not( any ( target_os = "redox" , target_os = "haiku" ) ) ) ]
11+ #[ cfg( not( target_os = "redox" ) ) ]
1212#[ test]
1313pub fn test_clock_getres ( ) {
1414 assert ! ( nix:: time:: clock_getres( ClockId :: CLOCK_REALTIME ) . is_ok( ) ) ;
@@ -32,7 +32,7 @@ pub fn test_clock_getcpuclockid() {
3232 assert ! ( clock_gettime( clock_id) . is_ok( ) ) ;
3333}
3434
35- #[ cfg( not( any ( target_os = "redox" , target_os = "haiku" ) ) ) ]
35+ #[ cfg( not( target_os = "redox" ) ) ]
3636#[ test]
3737pub fn test_clock_id_res ( ) {
3838 assert ! ( ClockId :: CLOCK_REALTIME . res( ) . is_ok( ) ) ;
You can’t perform that action at this time.
0 commit comments