File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ impl Client {
291
291
{
292
292
let read = self . read ( ) . as_raw_fd ( ) ;
293
293
loop {
294
- match non_blocking_read ( read, & buf) {
294
+ match non_blocking_read ( read, & mut buf) {
295
295
Ok ( 1 ) => return Ok ( Some ( Acquired { byte : buf[ 0 ] } ) ) ,
296
296
Ok ( _) => {
297
297
return Err ( io:: Error :: new (
@@ -587,7 +587,7 @@ fn cvt_ssize(t: libc::ssize_t) -> io::Result<libc::ssize_t> {
587
587
}
588
588
589
589
#[ cfg( target_os = "linux" ) ]
590
- fn non_blocking_read ( fd : c_int , buf : & [ u8 ] ) -> io:: Result < usize > {
590
+ fn non_blocking_read ( fd : c_int , buf : & mut [ u8 ] ) -> io:: Result < usize > {
591
591
static IS_NONBLOCKING_READ_UNSUPPORTED : AtomicBool = AtomicBool :: new ( false ) ;
592
592
593
593
if IS_NONBLOCKING_READ_UNSUPPORTED . load ( Ordering :: Relaxed ) {
You can’t perform that action at this time.
0 commit comments