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 {
291291 {
292292 let read = self . read ( ) . as_raw_fd ( ) ;
293293 loop {
294- match non_blocking_read ( read, & buf) {
294+ match non_blocking_read ( read, & mut buf) {
295295 Ok ( 1 ) => return Ok ( Some ( Acquired { byte : buf[ 0 ] } ) ) ,
296296 Ok ( _) => {
297297 return Err ( io:: Error :: new (
@@ -587,7 +587,7 @@ fn cvt_ssize(t: libc::ssize_t) -> io::Result<libc::ssize_t> {
587587}
588588
589589#[ 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 > {
591591 static IS_NONBLOCKING_READ_UNSUPPORTED : AtomicBool = AtomicBool :: new ( false ) ;
592592
593593 if IS_NONBLOCKING_READ_UNSUPPORTED . load ( Ordering :: Relaxed ) {
You can’t perform that action at this time.
0 commit comments