File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 68
68
continue-on-error : ${{ matrix.can-fail }}
69
69
- name : Test no default features with use-dev-tty feature enabled
70
70
if : matrix.os != 'windows-2019'
71
- run : cargo test --no-default-features --features "use-dev-tty events bracketed-paste" -- --nocapture --test-threads 1
71
+ run : cargo test --no-default-features --features "use-dev-tty events event-stream bracketed-paste" -- --nocapture --test-threads 1
72
72
continue-on-error : ${{ matrix.can-fail }}
73
73
- name : Test no default features with windows feature enabled
74
74
if : matrix.os == 'windows-2019'
Original file line number Diff line number Diff line change @@ -185,7 +185,10 @@ impl EventSource for UnixInternalEventSource {
185
185
186
186
#[ cfg( feature = "event-stream" ) ]
187
187
if fds[ 2 ] . revents & POLLIN != 0 {
188
+ #[ cfg( feature = "libc" ) ]
188
189
let fd = FileDesc :: new ( self . wake_pipe . receiver . as_raw_fd ( ) , false ) ;
190
+ #[ cfg( not( feature = "libc" ) ) ]
191
+ let fd = FileDesc :: Borrowed ( self . wake_pipe . receiver . as_fd ( ) ) ;
189
192
// drain the pipe
190
193
while read_complete ( & fd, & mut [ 0 ; 1024 ] ) ? != 0 { }
191
194
You can’t perform that action at this time.
0 commit comments